function Hd = VFilter
%VFILTER 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:28

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

% [EOF]
