Quaternion Function Reference

onesq

Quaternion ones matrix

Syntax

Y = onesq(N)

Description

onesq(X) returns a quaternion matrix of ones. The vector part is always zero, and the scalar part is a matrix of ones, as returned by the MATLAB® ones function. Accepts the same parameters as the MATLAB® ones function.

Examples

>> show(onesq(2))
 
S =
 
     1     1
     1     1

X =
 
     0     0
     0     0

Y =
 
     0     0
     0     0

Z =
 
     0     0
     0     0

See Also

MATLAB® function: ones

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

License terms.