Calq commands and keywords

Function

eye(rows, columns)

Definition

Returns the Identity matrix with the given number of rows and columns. This is defined as a matrix of all zeroes, except for ones along the diagonal.

Example

  eye(3,3)
  1 0 0
  0 1 0
  0 0 1

See also

length. size. ones. zeros. setsize.


What is Calq?
Latest version of Calq
Digital Wave Systems Lab homepage