VirtualArray.ToDiagonalMatrix() Method

Top 

Description

Returns a Matrix where the diagonal elements are the elements of the calling Array.

 

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

)

 

 

Return Value

Type:

Matrix of number

 

 

Returns a Matrix object that contains the values of the Array as the diagonal elements.

 

Syntax

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

 

 

See also

VirtualArray Object