Code covered by the BSD License  

Highlights from
PlotFilter / Filter Coefficient Files

image thumbnail
from PlotFilter / Filter Coefficient Files by Peter Kabal
PlotFilter plots filter responses. Filter files include ITU-T filters & QMF filters.

TestPlotFilter
function TestPlotFilter

addpath('..');

% FIR filter
N = 120;
h = hamming(N);
TP(h, 1);

% IIR filter
[b, a] = ellip(5, 1, 50, 0.5);
TP(b, a);

return

%------------
% Test Plots
function TP (b, a)

figure;
PlotFilter(b, a, 'linear');
title('Linear');

figure
PlotFilter(b, a, 'log');
title('Log');

figure
PlotFilter(b, a, 'real');
title('Real');

figure
PlotFilter(b, a, 'phase-radian');
title('Phase');

figure
PlotFilter(b, a, 'delay');
title('Delay');

return

Contact us at files@mathworks.com