VirtualArray.ToColumnMajorMatrix(Variable) Method

Top 

Description

Returns a matrix using the input array as its column-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.ToColumnMajorMatrix(

Variable numRows)

 

 

Arguments

numRows


Description:

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

Valid Range:

numRows ≥ 1

 

 

 

Return Value

Type:

Matrix of number

 

 

The column major matrix.

 

Syntax

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

 

 

See also

VirtualArray Object