Transpose

The transpose of a matrix is also a matrix. The rows of the transpose are the columns of the original matrix and vice-versa.

.’ Scalar Row Vector Column Vector Matrix
  The same scalar entered is returned. Transposes to a column vector. Transposes to a row vector. Transposes the matrix.

Examples

[4 2 1].’
ans = [4; 2; 1]
 
3.’
ans = 3
 
[6 2; 9 5].’
ans = [6 9; 2 5]

Comments

Sparse matrices are supported for this operation.