In MATLAB, we use the equal sign to assign values to a variable.
For example:

>> u = 9
u =
9
Henceforth, MATLAB always takes the value of the variable u as 9. For example:

>> u*2 – 2*u + u
ans =
9

Note that MATLAB never forgets used variables unless instructed to do so. We can check the current value of a variable by simply typing its name.

 

The transpose operator swaps the row and columns of any array that it is applied to.

For example:

>>  f = [1:4]’
f =
1
2
3
4