
Variables
Like most
programming languages, MATLAB allows you to create variables, and assign
values to them. Variables are used to represent all data types including scalars,
arrays, matrices and strings. MATLAB variables are
created with an assignment statement, which creates the “variable” and
assigns to it the value of the “expression” on the right hand side.
The syntax is
variable
name = a value or an expression
For...