Matlab hints for file reading and 256 level display
- matlabfilereads.pdf
"imbytefile" routine for matlab display
- imbytefile.m
Fortran fft routine from Numerical Recipes
- fft.f
C fft routine from Numerical Recipes
- four1.c
MATLAB NOTES
We recommend that you start with the document "Getting started".
How to use a Stanford UNIX machine from your PC in general, and MATLAB in
particular
Apart from buying a student's license or going to Sweet Hall, you can use
Matlab remotely from your PC if you can connect to the Stanford network -and
your connection is fast enough, for instance if you live on campus.
First of all, we assume that you have an application to establish a TELNET
connection. We recommend Samson, the standard TELNET application at Stanford,
available at http://www.stanford.edu/group/itss/ess/.
Recall that to access any Stanford machine you need a Leland account, that is, aStanford Network ID (SUNetID) and a password (for details, see http://www.stanford.edu/group/itss/services/sunetid//).
An X-Window server is an application you may install on your PC that allows
you to connect to a UNIX machine and see in your PC what you would see if you
were working in front of the UNIX machine itself, including not only text, but
also graphics. Two examples of such programs are Hummingbird Exceed and M/X. Thelatter can be used for free during a limited trial period and can be downloaded
from http://www.microimages.com/freestuf/mix/.
To establish this connection, you usually need to:
- Launch your X-Window server (using for instance, Exceed).
- Launch your TELNET application (for instance, Samson) and establish a
connection to a UNIX machine having MATLAB installed (for instance,
elaine.stanford.edu, cardinal.stanford.edu, firebird, forsythe, etc.). Your
login and password are those corresponding to your Leland account.
- In your TELNET application, write
- setenv DISPLAY ${REMOTEHOST}:0.0
- xterm & (optional test, opens a graphical terminal window)
- matlab &
- Wait for a few seconds for MATLAB to start.
Not all UNIX machines are properly configured and contain MATLAB properly
installed. I just tried elaine.stanford.edu from my on-campus PC and it worked.
A tip. Save your files frequently in case the connection is lost. You can
easily recover them later.
|