Skip to main content

IDENTITY

Returns an n×n identity matrix (1s on the diagonal, 0s elsewhere).

Aliases: EYE

CategoryMatrix
SyntaxIDENTITY(n)

Parameters

ParameterRequiredDescription
nRequiredThe size of the identity matrix (number of rows and columns).

Example

IDENTITY([1, 2; 3, 4])

Auto-generated from the EngCanvas function registry.