Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The vectors created by the DO function and the index creation operators are row vectors. To get a column vector, you can use the T function, which transposes a matrix. The syntax is T(matrix).
The transpose of a row vector is a column vector, and the transpose of a column vector is a row vector. The transpose of a two-dimensional matrix is obtained by flipping the matrix about its main diagonal. Specifically, if aij is the element in the i th row and j th column of a matrix A, then aji is the element in the i th row and j th column of the transpose of A. The following statements demonstrate the transpose function: