13

My collaborators are using Matlab to do some simulations. Is there an open source alternative I could use on Linux to run these scripts? It would need to be fairly closely compatible with the (1) matlab language (2) the *.fig files - saved plots.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
Grzenio
  • 5,747
  • 12
  • 32
  • 41
  • Octave is the closest to Matlab. Concerning the .fig files, I would say that you shouldn't save the figures as .fig, but rather save them in some universal format. Another option is to save the data, rather than the .fig file, and plot the data using a freeware software like python. – Beni Bogosel Mar 01 '22 at 18:27

4 Answers4

19

There are 2 major ones for the language (I don't know about .fig though):

I have tried Octave and Scilab and 90% of the time, my code runs on MATLAB without a single modification. Sometimes, there are a few modifications necessary but they are well documented and quite easy to implement. (Like % as comments instead of // etc.)

Between Octave and SciLab, A quick google search will help you find one that suits your need. But both are brilliant IMO.

8

Whenever questions of equivolant programs for other platforms come up, the first place I always check is AlternativeTo. It seems there are several possibilities in your case.

Interestingly it looks like Wolfram Alfa has an entry into the field that runs on Linux, although the license is proprietary. After that the popular ones appear to be Sage, Octave and Scilab, although you should check through the list to see if anything suits you better as there are some promising names such as FreeMat and OpenModelica (although if the projects are immature they could be disappointing.)

Caleb
  • 69,278
  • 18
  • 196
  • 226
0

I'm not sure how compatible with the matlab files, but you could look at FreeMat, which is an open-source, cross-platform system.

Arcege
  • 22,287
  • 5
  • 56
  • 64
0

You can try a Octave, which have a language similar to Matlab, or SciLab. *.fig files you can plot via Xfig or maybe GnuPlot.

Jan Marek
  • 3,837
  • 1
  • 14
  • 12