Line | |
---|
1 | function r = mrdivide(a, b) |
---|
2 | % / Slash or right matrix divide. |
---|
3 | % (Quaternion overloading of standard Matlab function.) |
---|
4 | % |
---|
5 | % This function is implemented only for the case in which the |
---|
6 | % second parameter is a scalar. In this case, the result is as |
---|
7 | % given by the ./ function. The reason for implementing this |
---|
8 | % function is that some Matlab code uses / when ./ should have |
---|
9 | % been used. See, for example, the function cov.m in Matlab |
---|
10 | % versions up to (at least) 7.0.4.365 (R14) Service Pack 2. |
---|
11 | |
---|
12 | % Copyright © 2005 Stephen J. Sangwine and Nicolas Le Bihan. |
---|
13 | % See the file : Copyright.m for further details. |
---|
14 | |
---|
15 | error(nargchk(2, 2, nargin)), error(nargoutchk(0, 1, nargout)) |
---|
16 | |
---|
17 | if size(b) ~= [1,1] |
---|
18 | error('quaternion/mrdivide is implemented only for division by a scalar.'); |
---|
19 | end |
---|
20 | |
---|
21 | r = a ./ b; |
---|
Note: See
TracBrowser
for help on using the repository browser.