MATLAB provides a powerful interactive computing environment for numeric computation, visualization, and data analysis. Its wide range of commands, functions, and language constructs permit users to solve and analyze difficult computational problems from science and engineering without programming in a general purpose language.
This document is not intended to be a complete manual for MATLAB users. Instead, it provides a brief introduction to MATLAB, outlining features that might be of particular use to CPSC 302 and 303 students. Additional sources of MATLAB documentation and examples to be used in conjunction with this guide include:
The MATLAB Help Desk, which includes a complete set of manuals for
MATLAB 5 in PDF format, is available on the web at
file://localhost/cs/local/generic/lib/pkg/matlab-5.2/help/helpdesk.html
Please note that this URL can only be accessed by browsers running on a
undergrad server.
In addition, you can also enter intro <rtn> at the MATLAB prompt for a basic tour of MATLAB lasting a few minutes.
I have also provided an unofficial MATLAB FAQ in the text file /ugrad0/cs303/lib/FAQ.
Each 302 assignment will require some use of MATLAB. The extent to which you use MATLAB beyond these requirements is up to you, but you are strongly advised to use it for all programming assignments in the course. One warning, however. You may discover built-in numerical functions that you think implement a portion of one or more of your assignments. You may not use these function unless I approve them. (Of course, you could always verify your solution if you discover an appropriate MATLAB function.) Please check with me well before assignment due dates if you need this rule clarified for special MATLAB functions.
We have approximately 25 or 30 MATLAB licenses available to users in our undergraduate labs. Please respect the needs of other users and exit from MATLAB rather than leaving it idle for extended periods of time. To save the current state of a MATLAB session and initialize a subsequent MATLAB session with the same variables, use the commands save and load.
While reading the remainder of this document you are strongly encouraged to go to an undergraduate lab and experiment with the different features described. Be sure to explore some of the MATLAB demos too!