Language Reference


T Function

T (matrix);

The T (transpose) function returns the transpose of its argument. You can also use the transpose operator (‘) to transpose a matrix.

For example, the following statements transpose a matrix:

x = {1 2, 3 4, 5 6};
y = t(x);
print y;

Figure 25.411: Matrix Transpose

y
1 3 5
2 4 6