Line | |
---|
1 | function d = double(q) |
---|
2 | % DOUBLE Convert quaternion to double 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 | |
---|
8 | error(['Conversion to double from quaternion is not possible. ',... |
---|
9 | 'Try convert(q, ''double'')']) |
---|
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.