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.8 $  $Date: 2000/06/19 16:57:13 $
% Copyright 1984-2000 The MathWorks, Inc.

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