function Hd = lowpass363
%LOWPASS363 Returns a discrete-time filter object.
% MATLAB Code
% Generated by MATLAB(R) 8.1 and the DSP System Toolbox 8.4.
% Generated on: 07-May-2014 14:02:30
% FIR Window Lowpass filter designed using the FIR1 function.
% All frequency values are in kHz.
Fs = 10; % Sampling Frequency
Fpass = 0.4; % Passband Frequency
Fstop = 0.5; % Stopband Frequency
Dpass = 0.057501127785; % Passband Ripple
Dstop = 0.001; % Stopband Attenuation
flag = 'scale'; % Sampling Flag
% Calculate the order from the parameters using KAISERORD.
[N,Wn,BETA,TYPE] = kaiserord([Fpass Fstop]/(Fs/2), [1 0], [Dstop Dpass]);
% Calculate the coefficients using the FIR1 function.
b = fir1(N, Wn, TYPE, kaiser(N+1, BETA), flag);
Hd = dfilt.dffir(b);
% [EOF]