Main Content
speye
Sparse identity matrix
Description
S = speye
returns a sparse scalar 1
.
S = speye(
returns a sparse
n
)n
-by-n
identity matrix, with ones on the main
diagonal and zeros elsewhere.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced before R2006a