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

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

Added original make3d

File size: 469 bytes
Line 
1function x = ess(q)
2% Extracts the scalar component of a full quaternion. If q is a pure
3% quaternion, an error is raised, since the scalar part of a pure
4% quaternion should not be extracted.
5
6% Copyright © 2005 Stephen J. Sangwine and Nicolas Le Bihan.
7% See the file : Copyright.m for further details.
8
9% error(nargchk(1, 1, nargin)), error(nargoutchk(0, 1, nargout))
10
11if isempty(q.w)
12    error('The scalar part of a pure quaternion is not defined.');
13end
14
15x = q.w;
Note: See TracBrowser for help on using the repository browser.