Language Reference

I Function

creates an identity matrix

I( dimension)

where dimension specifies the size of the identity matrix.

The I function creates an identity matrix with dimension rows and columns. The diagonal elements of an identity matrix are 1s; all other elements are 0s. The value of dimension must be an integer greater than or equal to 1. Noninteger operands are truncated to their integer part.

For example, consider the following statement:

  
    a=I(3);
 
This statement yields the following result:
  
                         A 
                         1  0  0 
                         0  1  0 
                         0  0  1
 

Previous Page | Next Page | Top of Page