WOLFRAM SYSTEM MODELER
flipUpDownFlip the rows of a matrix in up/down direction |
SystemModel["Modelica.Math.Matrices.flipUpDown"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
A_fud = Matrices.flipUpDown(A);
Function flipUpDown computes from matrix A a matrix A_fud with flipped rows, i.e., A_fud[i,:]=A[n-i+1,:], i=1,..., n.
A = [1, 2, 3; 3, 4, 5; -1, 2, -3]; A_fud = flipUpDown(A); results in: A_fud = [-1, 2, -3; 3, 4, 5; 1, 2, 3]
A |
Type: Real[:,:] Description: Matrix to be flipped |
---|
Aflip |
Type: Real[size(A, 1),size(A, 2)] Description: Flipped matrix |
---|