VirtualArray.ToRowMajorMatrix(Variable) Method

Top 

Description

Returns a matrix using the input array as its row-major elements.

 

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

VirtualArray.ToRowMajorMatrix(

Variable numColumns)

 

 

Arguments

numColumns


Description:

The number of colunms in the resulting matrix. This value must divide evenly into the total number of elements. The number of rows in the resulting matrix is numElements/numColumns.

Valid Range:

numColumns ≥ 1

 

 

 

Return Value

Type:

Matrix of number

 

 

The row major matrix.

 

Syntax

myMatrix1 = {1,2,3,4}.ToRowMajorMatrix(myVariable1);

 

 

See also

VirtualArray Object