function Hd = PFilter
%PFILTER Returns a discrete-time filter object.

% MATLAB Code
% Generated by MATLAB(R) 8.4 and the Signal Processing Toolbox 6.22.
% Generated on: 03-Feb-2016 08:16:36

% 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 = dfilt.dffir(b);

% [EOF]
