Resize Matrix Function

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.


icon

Inputs/Outputs

  • c2ddbl.png matrix

    matrix must be a 2D array of any numeric type or a real or complex matrix.

  • ci32.png number of rows

    number of rows specifies the new row dimension.

  • ci32.png number of columns

    number of columns specifies the new column dimension.

  • i2ddbl.png resized matrix

    resized matrix is matrix with the number of rows and columns you specify in number of rows and number of columns.

  • 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.