function Hd = VFilter2
%VFILTER2 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:21:45

% Equiripple Differentiator filter designed using the FIRPM function.

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

N = 8;                    % Order
F = [0 0.02 0.022 0.16];  % Frequency Vector
A = [0 1 0 0];            % Amplitude Vector
W = [1 1];                % Weight Vector

% Calculate the coefficients using the FIRPM function.
b  = firpm(N, F/(Fs/2), A, W, 'differentiator');
Hd = dsp.FIRFilter( ...
    'Numerator', b);

% [EOF]
