function [varargout] = calllib(libname,funcname,varargin)
%CALLLIB Call a function in an external library.
%   [X1,...,XN]=CALLLIB('LIBNAME','FUNCNAME',ARG1,...,ARGN) calls 
%   the function FUNCNAME in library LIBNAME, passing input arguments 
%   ARG1 through ARGN.  CALLLIB returns output values obtained from
%   function FUNCNAME in X1 through XN.
%
%   See also LOADLIBRARY, LIBFUNCTIONS, LIBFUNCTIONSVIEW, UNLOADLIBRARY.

%   Copyright 2003-2004 The MathWorks, Inc.
%   $Revision: 1.1.6.4 $  $Date: 2004/07/16 18:32:12 $
%   Built-in function.
