%% Design a Direct Form FIR Filter
% This example designs a direct form FIR filter from a halfband filter specification object.

d = fdesign.halfband('n,tw',200,0.01);
hbFilter = design(d,'kaiserwin','filterstructure','dffir',...
    'SystemObject',true)

%

fvtool(hbFilter);

%
% In this example, kaiserwin uses an interpolating filter specification object.

d = fdesign.interpolator(4,'lowpass');
interpFilter= design(d,'kaiserwin','SystemObject',true)

%

fvtool(interpFilter);

% Copyright 2012 The MathWorks, Inc.