function h = latcallpass(varargin)
%LATCALLPASS  Constructor for the allpass lattice object.
%   F = LATCALLPASS(K) creates an allpass lattice (latcallpass)
%   filter object F given the reflection coefficients in vector K.
%
%   F = LATCALLPASS(K1,K2,...) creates a LATCALLPASS object F of cascaded
%   sections. the reflection coefficients of the i-th section
%   are given by the vector Ki.
%
%   LATCALLPASS({K1},{K2},...}) is equivalent to LATCALLPASS(K1,K2,...).
%
%   F = LATCALLPASS(...,C) creates a LATCALLPASS 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:52 $ 

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

% [EOF] - LATCALLPASS.M

