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

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

Added original make3d

File size: 790 bytes
Line 
1function 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
15error(nargchk(2, 2, nargin)), error(nargoutchk(0, 1, nargout))
16
17if size(b) ~= [1,1]
18    error('quaternion/mrdivide is implemented only for division by a scalar.');
19end
20
21r = a ./ b;
Note: See TracBrowser for help on using the repository browser.