function h = latcma(varargin)
%LATCMA  Constructor for minimum phase lattice MA object.
%   F = LATCMA(K) creates a minimum phase lattice (latcma)
%   filter object F given the reflection coefficients in vector K.
%
%   F = LATCMA(K1,K2,...) creates a LATCMA object F of cascaded
%   sections. the reflection coefficients of the i-th section
%   are given by the vector Ki.
%
%   LATCMA({K1},{K2},...}) is equivalent to LATCMA(K1,K2,...).
%
%   F = LATCMA(...,C) creates a LATCMA 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.4 $  $Date: 2000/06/13 21:22:06 $ 


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

% [EOF] - LATCMA.M

