Matrix: Transpose
Transpose the active matrix
1. mtranspose
2. mtranspose im:=[MBook1]MSheet1!Mat(1)
Please refer to the page for additional option switches when accessing the x-function from script
Input
MatrixObject
Specifies the input matrix.
Output
Specifies the output matrix.
See the syntax here.
This X-Function exchanges the matrix columns with rows, and rows with columns.
/* This example shows how transpose a matrix. The sample data is exe_path\Samples\Matrix Conversion and Gridding\Direct.dat 1. Load matrix data. 2. Transpose and create a new matrix */ // Get sample data fn$ = system.path.program$ + "Samples\Matrix Conversion and Gridding\Direct.dat"; window -t matrix origin; impASC fn$; // Transpose matrix mtranspose om:=<new>;
m2w, w2m