Quaternion Function Reference

disp

Display array
(Quaternion overloading of standard MATLAB® function)

Syntax

display(X)

Description

display(X) displays the value of the quaternion X preceded by its name. For a scalar argument, disp displays the value of the quaternion using char. Otherwise it outputs a concise summary of the quaternion, indicating the dimensions, whether the value is pure, and whether it has complex components. MATLAB® calls this function implicitly when a quaternion is to be displayed, as for example, after an assignment which has not been followed by a semi-colon.

To display the numeric values in a non-scalar quaternion array, use displayall or show.

Examples

Notice the implicit call to display after A is assigned.
>> A = randq(2)
 
A = 2x2 quaternion array
 
>> display(A)
 
A = 2x2 quaternion array

See Also

QTFM functions: disp, displayall, show
MATLAB® functions: disp, display

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

License terms.