, L. Foster, 8
Octave is a Matlab clone. It does not have as nice an interface as Matlab and is missing some more advanced Matlab functions.
recommend that you
get a copy of Matlab; it is
nicer than Octave. However
for much of the course Octave may work
Matlab code will work in Octave without changes
. If you decide to try to use Octave and do not get a copy of Matlab for your
computer, I strongly recommend that you sign up for Math 110L or pay $25 to the dep
artment office so that you have access to
Matlab in MH221. I expect on some assignments Octave will not be sufficient.
INSTRUCTIONS FOR INSTALLING OCTAVE ON A WINDOWS COMPUTER
1. Go to
and click on
to download the zipped Octav
2. Uncompress the file with a tool for unzipping files. I used 7zip which is available at
unzip Octave3.6.1_gcc4.6.2_20120303.7z, I opened the 7
Zip File Manager from my Windows program list, used the up a folder
arrow and folder bar to navigate to the location of Octave3.6.1_gcc4.6.2_20120303.7z, selected this file and clicked on extr
expect that other unzipping packages will also work, but since I have not tried them I cannot guarantee that they will work.
3. In Windows explorer (or my computer)
move to the folder where your uncompressed octave files are located and then move
wn to the bin subfolder. For example I stored the octave zip file in c:
octave. When it was unzipped the octave files are stored
Octave3.6.1_gcc4.6.2. Therefore in Windows explorer I move to c:
4. Right cli
ck on octave.exe in that subfolder and then click on create shortcut.
5. Drag the file
to your desktop.
6. Click on the
on your desktop to start O
7. It should take perhaps 20
30 seconds to load.
After some information
is written on the screen
a prompt “octave:1>” should
8. You might try one of the built in demos. For example at the octave:1> prompt type “demo(‘speed’)”
without the double quotes
Some graphs and discussion should appear
. I did
not try to interpret the graphs
when I ran the demo
9. Most or many Matlab commands should now work.
FOR INSTALLATION INSTUCTIONS ON OTHER PLATFORMS:
and follow the links. I don’t have additional details since I have not
tried to install Octave on a Mac or on Linux.
Another alternative to Matlab is Python. See
. Many of the
assignments in the class could be done in Python but a student would need to recode the example Matlab code that I make
available. Also f
or beginners Matlab is easier to learn than Python. For these reasons Python is not a good alternative to Matlab
for this class, unless you already know Python.
For application related to linear algebra, as a rough rule of thumb, it
takes about ten times as long to develo
p an application in a
language such as C, C++, Fortran, Java, Pascal, etc. as it does to develop the application in Matlab. On the other hand,
unless a Matlab application relies predominately on built
, Matlab code will run slower than code programmed
in a compiled language such as C
. We will discuss this issue in class
and explain how one can call C, C++, or
code from Matlab.
OTHER MATHEMATICAL PROGRAMMING E
Maple, Mathematica, Maxima, Wolfram Alpha
and . . .
are examples of mathematical programming environments. Matlab is
designed to work with linear algebra and is the best tool for 143M. Also Matlab is more widely used in industry