Matrix.Constant(Variable, Variable, Variable) Method

Top 

Description

A matrix filled with the specified value.

 

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.Constant(

Variable numRows,


Variable numColumns,


Variable valueToLoad)

 

 

Arguments

numRows


Description:

The number of rows in the matrix.

Valid Range:

numRows ≥ 1

 

 

numColumns


Description:

The number of columns in the matrix.

Valid Range:

numColumns ≥ 1

 

 

valueToLoad


Description:

The value to load.

 

 

 

Return Value

Type:

Matrix of number

 

 

Returns a matrix of size numRows by numColumns filled with valueToLoad.

 

Syntax

myMatrix1 = Matrix.Constant(myVariable1, myVariable2, myVariable3);

 

 

See also

Matrix Object

Matrix, Array, and Variable Math Guide