If you have used matlab before and are reasonably comfortable downloading and installing files, just go ahead and follow the directions here. Otherwise, follow the directions below to run on a Mac with Matlab.
If instead you want to run on your own laptop and don't have Matlab installed, then it is possible to run this using the corn server, but it's a bit more involved and doesn't always work great - so I don't necessarily recommend it. Here are instructions if you want to try below.
Alternatively, if you will be using Matlab a lot in the future and would like to purchase a license, you may be able to purchase a student license (though that license has a limit on matrix sizes). See https://www.mathworks.com/store/link/products/student.
If you want to run on Windows then you can follow instructions here, but really, must you run Windows?
Stanford provides a campus wide Matlab license that everyone can connect to. This section will get your computer set up to use it.
ssh -X jlg@corn.stanford.edu
module load matlab/r2013b
wget http://gru.stanford.edu/pub/classification.tar.gz gunzip classification.tar.gz tar xf classification.tar
matlab -nodesktop
Warning: No display specified. You will not be able to display graphics on the screen.
For Mac OS Sierra, the problem may be that the location of the XAuth program needs to be specified in the file /etc/ssh/ssh_config. To fix that you can do the following:
cd /etc/ssh sudo emacs ssh_config Add the following line anywhere in the file: XAuthLocation /usr/X11/bin/xauth Save the file by doing ctrl-x ctrl-s and quit by doing ctrl-x ctrl-c
Another possible problem is that you may not be able to load the module, and you will see the following
module: Command not found.
If you see this message after typing “module load matlab”, this means you have an older account where the module environment is not set up properly. Follow instructions here. If everything went well, you should see the following
addpath(genpath('classification'));