function h = latcarma(varargin)
%LATCARMA  Constructor for ARMA lattice object.
%   F = LATCARMA(K,V) creates an ARMA lattice (latcarma)
%   filter object F given the reflection coefficients in vector K
%   and the ladder coefficients in vector v.
%
%   F = LATCARMA(K1,V1,K2,V2,...) creates a LATCARMA object F of
%   cascaded sections.  The reflection coefficients of the i-th
%   section are given by the vector Ki.  The ladder coefficients
%   of the i-th section are given by the vector Vi.
%
%   LATCARMA({K1,V1},{K2,V2},...}) is equivalent to 
%   LATCARMA(K1,V1,K2,V2,...).
%
%   F = LATCARMA(...,C) creates a LATCARMA 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:21:59 $ 

[coeffs,connection,msg] = dfiltparse('latcarma',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,'latcarma',dfilt(coeffs,connection));

% [EOF] - LATCARMA.M

