Matlab (via SSH into NCSU)


SSH into the NCSU system:

You need to get the SSH program putty. Just follow the documentation there for configuration. At the end, they suggest checking "Enable X11 forwarding." But that will not work unless you have x32 software. We suggest not checking this box.

See also Creating your ST370 Webpage for information about one-time set-up of your webpage, which will have you create the sub-directories www and ST370.

To start Matlab:

Once you have established an SSH session, enter the following commands at the prompt

cd www/ST370    (ignore this first one if you don't have this subdirectory)
add st370_info
add matlab53
matlab

Then within matlab type

load st370data

If that doesn't work, after getting in matlab, type

addpath /afs/unity.ncsu.edu/users/b/boos/www/mlab/mfunctions
load st370data

To view plots from Matlab:

Use this command AFTER running any plotting function (for example: plot())
plot(climate.rain)
print -dps Plot1.ps

Now you can view this postscript file from the web (see Creating your ST370 Webpage)

To exit Matlab, just type quit.
To exit the SSH session, just type exit.

To get help:
Type help or help function for help on a specific function
or look at: Matlab On-line Documentation