Programming Previous page   Next Page

Basic Program Components


This chapter introduces some of the principal building blocks used in writing MATLAB programs.

Variables
Guidelines for creating variables; global and persistent variables; variable scope and lifetime
Keywords
Reserved words that you should avoid using
Special Values
Functions that return constant values, like pi or inf
Operators
Arithmetic, relational, and logical operators
MATLAB Expressions
Executing user-supplied strings; constructing executable strings, shell escape functions
Regular Expressions
A versatile way to search and replace character strings
Comma-Separated Lists
Using lists with structures and cell arrays to simplify your code
Program Control Statements
Using statements such as if, for, and try-catch to control the code path your program follows
Symbol Reference
Quick reference to the symbols used by MATLAB
MATLAB Functions
Description of the M-file, built-in, and overloaded function types supplied with MATLAB


Previous page  Java Classes Variables Next page

© 1994-2005 The MathWorks, Inc.