Download f2matlab.
1. Put the f2matlab file in a folder (eg. /home/khan/)
2. Open matlab and add the documents directory to your matlab path
- put "addpath '/home/khan' " at the matlab command prompt.
3. Call the f2matlab function with your fortran program name:
- put " f2matlab('msphere.f') " at the matlab command prompt.
Source