Octave (the open source Matlab clone)
For those of you who use Matlab, and would like an open-source (ie free) alternative, Octave isn’t bad. However, it’s a learning curve. Most of the features work just fine - eg plot(sin(0:0.1:3.141)); works just as expected. However, I wanted to change the ticks on a graph I was doing
In Matlab, you’d do something like:
set(RightAxesHandle(2),’YTick’,[10 30 40],’YTickLabel’, [’a'; ‘b’; ‘c’])
But it doesn’t work in Octave. There, you have to do:
gset xtics(”a” 10, “b” 30, “c” 40)
The other thing that you might need to do is to enable the mouse for panning / rotating 3D graphs. To do this, use “gset mouse”. Finally, if you want options like that to be preserved, then put them in ~/.octaverc
October 20th, 2005 at 11:05 pm
Another alternative that people might want to try as it works quite nicely in Windows is Scilab. A comparison between Matlab Clones can be found at dspguru.com.
Scilab
Octave
October 24th, 2005 at 10:58 am
I later had problems with gset. You use gset to tell Octave how to communicate with the plotting engine. I wanted to plot my graphs to file, but with a dynamic filename. So,
gset terminal png; % set the output file formatworks fine. However:
gset output ["graph-" num2str(i) ".png"];doesn’t work. Instead, you need to do:
eval(sprintf('gset output "graph-%03d.png"',i))