DIAG
Creates a diagonal matrix from a list of values. The values appear on the main diagonal; all other elements are 0.
| Category | Matrix |
| Syntax | DIAG(value1, [value2], ...) |
Parameters
| Parameter | Required | Description |
|---|---|---|
value1 | Required | The first diagonal element. |
value2 | Optional | Additional diagonal elements. |
Example
DIAG([1, 2; 3, 4])
Auto-generated from the EngCanvas function registry.