Resize Matrix Function

Owning Palette: Matrix Functions

Requires: Base Development System

Resizes matrix with new row and column dimensions based on the number of rows and columns you specify.

The connector pane displays the default data types for this polymorphic function.

Details  

 Add to the block diagram  Find on the palette
matrix must be a 2D array of any numeric type or a real or complex matrix.
number of rows specifies the new row dimension.
number of columns specifies the new column dimension.
resized matrix is matrix with the number of rows and columns you specify in number of rows and number of columns.

Resize Matrix Details

If you do not wire number of rows, the function uses the row dimension of matrix to determine the number of rows in resized matrix. If you do not wire number of columns, the function uses the column dimension of matrix to determine the number of columns in resized matrix.

If you increase the row or column dimensions of matrix, the function returns 0 at each exterior location.

This function only retains elements within the new row or column dimensions you specify in number of rows and number of columns. If any elements in matrix have row or column indexes outside the new row or column dimensions, respectively, this function removes the elements from resized matrix.