Contents
Previous
Next
Subchapters
Current Chapters->
identity
zeros
ones
fill
fillcols
fillrows
seq
toeplitz
vander
hankel
hilb
invhilb
diag
tril
triu
novalue
Parent Chapters->
Omatrix6
elementary
specialmatrices
identity
Search Tools->
contents
reference
index
search
Obtaining A Copy Of The Identity Matrix
Syntax
identity(
dimension
)
See Also
ones
,
zeros
,
fill
,
diag
Description
Returns an integer copy of the identity matrix with the specified dimension, where
dimension
is a positive integer scalar.
Example
identity(3)
returns
{
[ 1 , 0 , 0 ]
[ 0 , 1 , 0 ]
[ 0 , 0 , 1 ]
}