source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/qtfm/@quaternion/displayall.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 605 bytes
Line 
1function displayall(q)
2% Displays the four components of a quaternion (array).
3
4% Copyright © 2005 Stephen J. Sangwine and Nicolas Le Bihan.
5% See the file : Copyright.m for further details.
6
7% Note, there is no easy way to output a quaternion array in the
8% same format as a complex array, therefore we resort to displaying
9% the s, x, y, z components as real arrays.
10
11disp(' ');
12disp([inputname(1) ' =']);
13disp(' ');
14if ~ispure(q)
15    disp(s(q));
16    disp([' + I *']);
17else
18    disp(['   I *']);
19end
20disp(' ');
21disp(x(q));
22disp(' + J *');
23disp(' ');
24disp(y(q));
25disp(' + K *');
26disp(' ');
27disp(z(q));
Note: See TracBrowser for help on using the repository browser.