ChE 101: Introduction
to MATLAB
Amy Proctor
January 7, 2012
Downloading MATLAB
MATLAB is available for free for Caltech students and
staff! (However, you need to be on the Caltech network to
use the program.)
To download MATLAB, log into
http://software.caltech.edu and enter your IMSS user
name and password. Click on Start Shopping.''
MATLAB can be found under MathWorks, Inc heading.
Download the latest version of MATLAB.
Using MATLAB off campus
Sign up for VPN at
http://www.imss.caltech.edu/help/vpn-signup-form
Download the Caltech VPN (AnyConnect) client at
https://vpn.caltech.edu/+CSCOE+/logon.html
When you are off the Caltech network, log in before
trying to open MATLAB.
Note: This is not necessary if you download the license file
properly on your computer, but you should sign up for VPN
access on the off chance you need to read a paper or get on
the course website off campus
Main MATLAB windows
Command window: The main window where
MATLAB puts you when you launch the application
Characterized by the >> command prompt)
All commands, including those for running programs
you write, are typed in this window
Workspace pane: Lists all of the variables you have
generated so far, along with their size and type.
Main MATLAB windows
Command history window: All commands typed
on the MATLAB prompt get recorded here (including
those from previous sessions)
Figure window: The output of all graphics commands
typed in the command window goes here
Editor window: Window where you write, edit,
create, and save your own programs in files called m-files
(standard ASCII text files).
Main MATLAB windows
I made some videos to illustrate a few points in
the tutorials. This is the first of them.
Video: http://youtu.be/X40TSdR-sFg
Note that the apostrophe characters
surrounding strings in the font I used for
MATLAB commands/inputs will not copy-paste
properly into MATLAB!