%% Lowpass FIR Filter Block with Sample-Based Processing
% Generate a Simulink(R) subsystem block that implements an FIR lowpass
% filter using sum, gain, and delay blocks. Specify the input processing to
% be elements as channels by specifying |'FrameBasedProcessing'| as
% |false|.

B = fir1(30,.25);
filt2block(B,'subsystem','BlockName','Lowpass FIR',...
              'FrameBasedProcessing',false)

%% 
% Copyright 2012 The MathWorks, Inc.