MUNIT Function
Return the identity matrix of a given dimension. array_or_dimension is the number of rows and columns; the matrix has 1 on its diagonal and 0 everywhere else and spills into a square range. A dimension less than 1 returns #VALUE!.
Syntax
MUNIT(array_or_dimension, array2)
Category: Math. Minimum arguments: 1. Maximum arguments: 1.
Available for supported offline calculation.
Examples
=MUNIT(2)
The formula spills the 2 × 2 identity matrix {1, 0; 0, 1}.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.