function varargout = coefficients(h,sec)
%COEFFICIENTS  Return DFILT object coefficients.
%   C = COEFFICIENTS(H) returns a cell array of coefficients
%   of the DFILT object H.
%
%   C = COEFFICIENTS(H,I) returns a cell array of coefficients
%   of the I-th section of H.
%
%   COEFFICIENTS(...) with no output argument displays the 
%   coefficients in the workspace.

%   Author(s): T. Bryan
%   Copyright 1988-2000 The MathWorks, Inc.
%   $Revision: 1.3 $  $Date: 2000/06/13 21:20:44 $ 

error(nargchk(1,2,nargin));
error(nargoutchk(0,1,nargout));

if nargin == 2,
    h = section(h,sec);
end

c = h.coefficients;

if nargout == 0,
    s = dispstr(h);
    disp(s);
else
    varargout = {c};
end

