www.gusucode.com > signal 案例源码程序 matlab代码 > signal/MaximumAndMinimumPhaseLatticeFiltersExample.m

    %% Maximum- and Minimum-Phase Filters
% Design maximum-phase and minimum-phase lattice filters and verify their
% phase type.

% Copyright 2015 The MathWorks, Inc.


%%
k = [1/6 1/1.4];
bmax = latc2tf(k,'max');
bmin = latc2tf(k,'min');
max_flag = ismaxphase(bmax)
min_flag = isminphase(bmin)

%%
% Given a filter defined with a set of single precision numerator and
% denominator coefficients, check if it is maximum phase for different
% values of the tolerance.

b = single([1 -0.9999]);
a = single([1 0.45]);
max_flag1 = ismaxphase(b,a)
max_flag2 = ismaxphase(b,a,1e-3)