torsdag 7 december 2006
Freemat - Matlab alternative
I have used Matlab a lot over the last seven years or so. Mathworks give away Matlab to all engineering students so they are "intoxicated" and demand Matlab when they start working. Really smart!
Well, there are several alternatives to Matlab. I have used octave for a while, but the plotting capabilities are not good enough to make a switch.
I also tried scilab, which I did not really like. I now stumbled over freemat. Time to give it a go!
Here is how I compiled it under debian testing.
as root (maybe all of the qt4-packages are not necessary):
apt-get install libqt4-dev
apt-get install lsb-qt4
apt-get install libqt4-gui
apt-get install g77
apt-get install libncurses5-dev
as user:
freemat source: http://prdownloads.sourceforge.net/freemat/FreeMat-2.0.tar.gz?download
unpack
./configure (did not work)
./builddeps --with-ffcall --with-umfpack --with-umfpack --with-fftw --with-fftw --with-blas --with-lapack --with-arpack --with-matio
./configure (now it worked!)
make
as root:
make install
as user:
FreeMat
the figure is created with
plot(rand(100,2),'o')
print('fil.png')
Prenumerera på:
Kommentarer till inlägget (Atom)
5 kommentarer:
Hello Paul, I'm trying to install FreeMat on my Ubuntu 7.04 following your suggestions, but I'm not able to .configure (I don't know the command ./builddeps). Do you have any suggestion? Thank you in advance!
i followed the above on ubuntu Feisty IGNORING the line containing 'builddeps' and as far as i can tell it works.
it's my first try with freemat so i can't really tell but the demo suggested above works and so do the help files...
by the way, other than being very MATLABish I haven't recognized any advantage over Python+Scipy+Matplotlib+Ipython (which seems far more robust)
Seems to have worked for me on Hardy 8.04 with a couple slight work arounds. The 'builddeps' script I had to replace all the '==' operators with '=' because I was getting a script operator error with the '=='. I also had to 'sudo apt-get install g++' as I believe it was either 'make' or 'matio' that would fail without it - I can't remember which one but the error told you g++ was missing or couldn't be found. None-the-less I'm very thankful this thread is around.
Javier
Seems to have worked for me on Hardy 8.04 with a couple slight work arounds. The 'builddeps' script I had to replace all the '==' operators with '=' because I was getting a script operator error with the '=='. I also had to 'sudo apt-get install g++' as I believe it was either 'make' or 'matio' that would fail without it - I can't remember which one but the error told you g++ was missing or couldn't be found. None-the-less I'm very thankful this thread is around.
Try to change "#! /bin/sh" -> "#! /bin/bash"
Good Luck!
bye XASH
Skicka en kommentar