Transpose of vector

Is an operation that changes a row vector into a column vector, and vice-versa using the transpose commands or the apostrophe ().

Example

Fig 1.11. Transpose vectors with two different ways

Note

  • In MATLAB, row and column numbers always begin with 1, not zeros, as in other programming languages. Zero, as it is the case in other programming languages.

  • The dimension of the two vectors must be the same for the operation in the vectors, which means that the number of elements in each vector must be the same/equal.

  • Here, operator.*(dot multiplication), ./(dot division), and .^ (dot power) are used for element-by-element array operations. These operators make programming for computation compact and efficient.