Running MATLAB on Athena


The following are the steps for running MATLAB files on Athena.

1. Create a working directory (e.g. create '2.003/hw1' under your home directory).

2. Download the MATLAB files to the working directory.

2. Start MATLAB.

3. Set the path to the working directory by typing the following commands in the MATLAB window,

   p = path;

path(p,' path name ') (e.g. path name can be 2.003/hw1)

4. Type the MATLAB file name in the MATLAB window, omit the extension '.m' (e.g. car).

5. To print the figure generated by the MATLAB file, type 'print' in the MATLAB window.



Attention : To have the MATLAB files for this problem set work properly, you have to have both car.m and car_visc.m in your working directory.