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
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input Matrix | im |
Input MatrixObject |
|
Specifies the input matrix. |
Output Matrix | om |
Output MatrixObject |
|
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>;