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

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

Added original make3d

File size: 772 bytes
Line 
1function d = single(q)
2% SINGLE Convert quaternion to single precision (obsolete).
3% (Quaternion overloading of standard Matlab function.)
4
5% Copyright © 2006 Stephen J. Sangwine and Nicolas Le Bihan.
6% See the file : Copyright.m for further details.
7
8error(['Conversion to single from quaternion is not possible. ',...
9       'Try convert(q, ''single'')'])
10
11% Note: this function was replaced from version 0.9 with the convert
12% function, because it is incorrect to provide a conversion function
13% that returns a quaternion result. The convert function provides the
14% same functionality, but will not be called implicitly by Matlab to
15% implement an assignment like X(1,2) = quaternion(1,2,3,4) which gave
16% erroneous results prior to version 0.9 and now raises an error.
Note: See TracBrowser for help on using the repository browser.