function [varargout] = evalc(varargin)
%EVALC Evaluate MATLAB expression with capture.
%    T = EVALC(S) is the same as EVAL(S) except that anything that would
%    normally be written to the command window is captured and returned in
%    the character array T (lines in T are separated by '\n' characters).  
%
%    [T,X,Y,Z,...] = EVALC(S) is the same as [X,Y,Z,...] = EVAL(S) except
%    that any output is captured into T.
%
%    Note: While in evalc, DIARY, MORE and INPUT are disabled.
%
%    See also EVAL, EVALIN, DIARY, MORE, INPUT.

%   Copyright 1984-2003 The MathWorks, Inc.
%   $Revision: 1.7.4.3 $  $Date: 2004/10/25 14:47:50 $


if nargout == 0
  builtin('evalc', varargin{:});
else
  [varargout{1:nargout}] = builtin('evalc', varargin{:});
end
