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

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

% [EOF] - LATCMAX.M
