%% Obtain the Valid Delay Range
% Create a dsp.VariableFractionalDelay object. Set the interpolation method to 'Farrow', and the maximum delay to 9. Obtain the valid delay range for these settings using the info method.
%

vfd = dsp.VariableFractionalDelay('InterpolationMethod','Farrow','MaximumDelay',9);
info(vfd)

%
% Specify the delay vector to have two taps - [0.95 10]. These values are out of the valid range. The object clips these values to [1 9] and concurrently applies the delay values to the input channel.

in = randn(10,1)
delayVec = [0.95 10]
vfdout = vfd(in,delayVec)

% The output contains two channels, each being a delayed version of the input channel. The first channel is delayed by 1 sample and the second channel is delayed by 9 samples.
% Copyright 2012 The MathWorks, Inc.