Contents Previous Next Subchapters

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 ]
     }