Practical 2: Variables, Script M-files and Graphing

Variables

Variables must be assigned values in the following format before they can be used in an expression.

<variable name> = <valid expression>

wink Tip: Angular brackets <> will be used to represent something generic that will be replaced in a specific example.

What this statement means is that the left hand side of an equals sign is always a variable name, say, x. The right hand side is an expression representing a new value to be assigned to that variable.