Quaternion Function Reference

eyeq

Identity matrix

Syntax

Y = eyeq(N)

Description

eyeq(X) returns a quaternion identity matrix. The vector part is always zero, and the scalar part is a real identity matrix, as returned by the MATLAB® eye function. Accepts the same parameters as the MATLAB® eye function.

Examples

>> show(eyeq(2))
 
S =
 
     1     0
     0     1

X =
 
     0     0
     0     0

Y =
 
     0     0
     0     0

Z =
 
     0     0
     0     0

See Also

MATLAB® function: eye

© 2008-2013 Stephen J. Sangwine and Nicolas Le Bihan

License terms.