%% Design a Halfband Filter using halfband
% This example designs a minimum order halfband filter with a specified maximum ripple.

b = firhalfband('minorder',.45,0.0001);
impz(b)

% You can see that the impulse response is zero for every alternate sample.
% Copyright 2012 The MathWorks, Inc.