Matrix.FillDiagonal(Variable) Method

Top 

Description

Loads the specifed value into the diagonal elements of the matrix and zero into all other elements. If the matrix is not square, an error will be thrown.

 

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

Variable valueToLoad)

 

 

Arguments

valueToLoad


Description:

The value to load.

 

 

 

Syntax

myMatrix1.FillDiagonal(myVariable1);

 

 

See also

Matrix Object

Matrix.FillDiagonal

Matrix, Array, and Variable Math Guide