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

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

Added original make3d

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