function h = ssd(varargin)
%SSD  Constructor for the discrete state-space object.
%   F = SSD(A,B,C,D) creates a discrete-time state space
%   (SSD) filter object F given the state space matrices
%   A, B, C and D.
%
%   F = SSD(A1,B1,C1,D1,A2,B2,C2,D2...) creates a SSD object
%   F of cascaded sections. The state space matrices of the
%   i-th section are given by the matrices Ai, Bi, Ci and Di.
%
%   F = SSD({{A1,B1,C1,D1},{A2,B2,C2,D2},...}) is equivalent to
%   F = SSD(A1,B1,C1,D1,A2,B2,C2,D2...).
%
%   F = SSD(...,C) creates a SSD object of sections connected
%   as indicated in C.  C can be either 'cas' (default) for
%   cascaded connections or 'par' for parallel connections.

%   Author(s): R. Losada
%   Copyright 1988-2000 The MathWorks, Inc.
%   $Revision: 1.3 $  $Date: 2000/06/13 21:22:41 $ 

[coeffs,connection,msg] = dfiltparse('ssd',varargin{:});

% If msg returns with a 'conversion' string, the constructor is used as a converteer
if strcmpi(msg,'conversion'),
    h = coeffs;
    return
end

error(msg);

h.version = 1;

h = class(h,'ssd',dfilt(coeffs,connection));

% [EOF] - SSD.M

