WOLFRAM SYSTEM MODELER

'diagonal()'

diagonal()

Wolfram Language

In[1]:=
SystemModel["ModelicaReference.Operators.'diagonal()'"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Returns a diagonal matrix

Syntax

diagonal(v)

Description

Returns a square matrix with the elements of vector v on the diagonal and all other elements zero.