function mbscalar(a)
%MBSCALAR Must be scalar.
%   The statement
%
%       mbscalar(x)
%
%   asserts that, at that point in the computation, the variable x 
%   has size 1-by-1.  If this assertion is false, an error occurs;
%   if this assertion is true, the computation proceeds.
%
%   See also MBINT, MBINTSCALAR, MBINTVECTOR, MBREAL, MBREALSCALAR, 
%            MBREALVECTOR, MBVECTOR.

% $Revision: 1.7 $  $Date: 1998/12/17 19:07:26 $
% Copyright (c) 1984-1998 by The MathWorks, Inc.

if any( size(a) ~= [1 1] ),
   error( 'Argument of mbscalar must be scalar.' );
end
