Identity matrix
I = eye
returns the scalar, 1
.
I = eye(
returns
an n
)n
-by-n
identity matrix with
ones on the main diagonal and zeros elsewhere.
I = eye(
returns
a scalar, classname
)1
, where classname
specifies
the data type. For example, eye('int8')
returns
a scalar, 8-bit integer.
I = eye('like',
returns
a scalar, p
)1
, with the same data type, sparsity,
and complexity (real or complex) as the numeric variable, p
.