MacIntosh workstation
Pc workstation
Unix Workstation
Log on the computer.
Start Matlab:
The window that appears is the Command Window. This is where Matlab does its work and you enter commands. You can do all your work by entering the commands by typing in a single line at at time. With simple problems, this is fine. However, when doing more complex computations, it is better to store a so-called macro file which can be used by Matlab to execute the commands.
Creating and running
"m-files" (Matlab macro file).
Log on the computer.
Start Matlab:
The window that appears is the Command Window. This is where Matlab does its work and you enter commands. You can do all your work by entering the commands by typing in a single line at at time. With simple problems, this is fine. However, when doing more complex computations, it is better to store a so-called macro file which can be used by Matlab to execute the commands.
Creating and running
"m-files" (Matlab macro file).
There is an editor in Matlab, notepad, as a default editor to Matlab.
However, this notepad does not allow to save the file with any other
extension other than ".txt".
It causes a problem since Matlab only recognize files with .m extension.
There should be some other ways to save the file with .m extension using
this notepad, but it's rahter more confusing, so we will use another
editor, GNU Emacs, which happens to be a very good editor.
You can save your files ONLY under the directory of "Temp", not anywhere
else.
This is how CAEN set up PC's, so there's no other way.
The procedures are same for Hewlett Packard and Sun. You don't need to type " (double quotation mark) when you follow the procedure below.
Log on the computer.
Start Matlab:
The terminal now becomes the Command Window of Matlab. This is where Matlab does its work and you enter commands. You can do all your work by entering the commands by typing in a single line at at time. With simple problems, this is fine. However, when doing more complex computations, it is better to store a so-called macro file which can be used by Matlab to execute the commands.
Creating and running
"m-files" (Matlab macro file).