IDENTITY
Returns an n×n identity matrix (1s on the diagonal, 0s elsewhere).
Aliases: EYE
| Category | Matrix |
| Syntax | IDENTITY(n) |
Parameters
| Parameter | Required | Description |
|---|---|---|
n | Required | The size of the identity matrix (number of rows and columns). |
Example
IDENTITY([1, 2; 3, 4])
Auto-generated from the EngCanvas function registry.