Owning Palette: Matrix Functions
Requires: Base Development System
Returns a submatrix of matrix starting at (row 1, column 1) and ending at (row N, column N).
To retrieve elements that are not next to each other in matrix, use the Get Matrix Elements function.
The connector pane displays the default data types for this polymorphic function.
Add to the block diagram | Find on the palette |
If you wire a matrix to matrix, submatrix returns a matrix with the same numeric type as matrix. If you wire a 2D array to matrix, submatrix returns a 2D array with the same numeric type as matrix.
If you wire matrix but you do not wire the other inputs, submatrix returns matrix. If you do not wire inputs to row 1 and column 1, submatrix starts with the first element of matrix. If you do not wire inputs to row N and column N, submatrix ends with the last element of matrix.
If row N is less than row 1 or if column N is less than column 1, submatrix returns an empty matrix or array with 0 for the row or column dimensions where appropriate.
If you wire a negative value to any of the row or column indexes, submatrix returns each row and column element outside matrix with an invalid operation value at each exterior location.
If you wire a value to row N or column N that is greater than or equal to the row or column dimensions of matrix, submatrix returns each row and column element outside matrix with an invalid operation value at each exterior location.