TransposeMatrix (FPScript)

21.09.2021

Transposes a matrix.

Syntax

TransposeMatrix(Matrix)

 

The syntax of the TransposeMatrix function consists of the following parts:

Part

Description

Matrix

The data set with the matrix to be transposed.

Permitted data structures are data matrix und signal series. All data types are permitted.

Remarks

The result has the same unit as the argument Matrix.

The matrix is mirrored on the main diagonal.

The matrix is passed in this case as a data matrix, where the data series contained therein correspond to the rows. If a signal series with a Z component is passed as an argument, the Y component is transposed and the X and Z components are swapped. If no Z component is present only the Y component is processed and the result is a data matrix.

The result is of the same data type as the transposed argument.

Example for a 3x3 matrix:

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Note        Note that the data series in the data matrix are interpreted as the matrix rows, although these are displayed as columns in the data set window. This assignment is required so that the Index Operator can be applied for matrices in the order defined in Linear Algebra where the first index value specifies the row and the second one specifies the column.

Available in

FlexPro Basic, Professional, Developer Suite

Examples

TransposeMatrix({{1, 3}, {5, 6}})

Results in the data matrix {{1, 5}, {3, 6}}.

See Also

MatrixMultiplication Function

InverseMatrix Function

Share article or send as email:

You might be interested in these articles