Creative Commons License Copyright © Michael Richmond. This work is licensed under a Creative Commons License.

A very brief introduction to MATLAB

When you start MATLAB, you should see a window appear which contains a number of panes, something like this:

Let's look at the various parts of this window:

Command
Type your commands to MATLAB here -- for example, the commands to run a function, or to set a variable equal to some value. All the output of your functions will appear in this pane, too.

Folder
Use this pane to look for your program files, or to set the folder in which your files will be saved.

Variable
As your program executes, the values of variables will appear here. This is very useful in conjunction with the debugger.

History
All the commands you type are saved here for future reference. You can also use the up-arrow key in the command pane to recall earlier commands.




There are also several windows which may pop up in response to your actions.

The plot window shows any plots which you may create with MATLAB's own plot command.





The editor/debugger window allows you to edit MATLAB programs. You may also use any other text editor to do so, outside of MATLAB, if you wish. However, the editor incorporates the MATLAB debugger, which is a powerful tool.




There are additional windows inside MATLAB, but we probably won't use them very much.





Some basic features of the MATLAB language


For more information


Creative Commons License Copyright © Michael Richmond. This work is licensed under a Creative Commons License.