Line | |
---|
1 | function x = ispure_internal(q) |
---|
2 | % Determines whether q is pure. This function has to know the |
---|
3 | % representation of a quaternion, whereas the function ispure |
---|
4 | % does not. |
---|
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 | |
---|
11 | x = isempty(q.w); % This is a call on the standard Matlab function |
---|
12 | % isempty() since q.w is not a quaternion. |
---|
Note: See
TracBrowser
for help on using the repository browser.