gusucode.com > qit_matlab_0.10.0工具箱源码程序 > qit/@lmap/mrdivide.m

    function s = mrdivide(s, a)
% MRDIVIDE  Division of the lmap by a scalar from the right.
%  q = rdivide(s, a)
%
%  Returns the lmap s divided by the scalar a.

% Ville Bergholm 2010


if (isscalar(a) && isnumeric(a))
  s.data = s.data / a;
else
  error('An lmap can only be divided by a scalar.')  
end