Variables
- A variable should have a name
- Values should be assigned to the variable with a '=' operator
- A variable can have an alphabetical character value K = 'l'
- Variable can also have an integer value K = '2009'
- Decimal values can also be assigned to a variable
Pi = '3.14159'
- The vector is a collection of numbers in one dimension
- t = [12 15 18 33], if individual elements are separated by spaces, then they are stored as individual columns in MATLAB
- t = [24;3;56;92], if individual elements are separated by semicolon, then they are stored as individual rows in MALTAB
Note :- If vectors or matrices change size in your calculations then their size should be preallocated.