Matrix.Resize(Variable, Variable) Method

Top 

Description

Resizes the matrix dimensions by adjusting the number of rows and columns. When the matrix size is decreased, existing elements remain in their original positions, while elements outside the new matrix are discarded. When the matrix size is increased, existing elements stay in place, and the new rows and columns are filled with zeros.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

Matrix.Resize(

Variable numRows,


Variable numColumns)

 

 

Arguments

numRows


Description:

The number of rows in the matrix.

Valid Range:

numRows ≥ 0

 

 

numColumns


Description:

The number of columns in the matrix.

Valid Range:

numColumns ≥ 0

 

 

 

Syntax

myMatrix1.Resize(myVariable1, myVariable2);

 

 

See also

Matrix Object

Matrix, Array, and Variable Math Guide