function Hd = PFilter2
%PFILTER2 Returns a discrete-time filter object.

% MATLAB Code
% Generated by MATLAB(R) 8.4 and the DSP System Toolbox 8.7.
% Generated on: 03-Feb-2016 08:17:29

% FIR Window Lowpass filter designed using the FIR1 function.

% All frequency values are in Hz.
Fs = 0.333;  % Sampling Frequency

N    = 10;       % Order
Fc   = 0.02;     % Cutoff Frequency
flag = 'scale';  % Sampling Flag

% Create the window vector for the design algorithm.
win = blackmanharris(N+1);

% Calculate the coefficients using the FIR1 function.
b  = fir1(N, Fc/(Fs/2), 'low', win, flag);
Hd = dsp.FIRFilter( ...
    'Numerator', b);

% [EOF]
