The FIRRateConverter
performs sampling rate
conversion by a rational factor on a vector or matrix input. The FIR
rate convertor cascades an interpolator with a decimator. The interpolator
upsamples the input by the upsampling factor, L,
followed by a lowpass FIR filter. The FIR filter acts both as an antiimaging
filter and an antialiasing filter prior to decimation. The decimator
downsamples the output of upsampling and FIR filtering by the downsampling
factor M. You must use upsampling and downsampling
factors that are relatively prime, or coprime. The resulting discretetime
signal has a sampling rate L/M times the original
sampling rate.
To perform sampling rate conversion:
Define and set up your FIR sample rate converter. See Construction.
Call step
to perform sampling rate
conversion according to the properties of dsp.FIRRateConverter
.
The behavior of step
is specific to each object in
the toolbox.
Note:
Starting in R2016b, instead of using the 
H = dsp.FIRRateConverter
returns
a FIR sample rate converter, H
, that resamples an
input signal at a rate 3/2 times the original sampling rate.
H = dsp.FIRRateConverter('
returns an FIR sample rate converter, PropertyName
',PropertyValue
,
...)H
,
with each property set to the specified value.
H = dsp.FIRRateConverter(L,M,NUM,'
returns an FIR sample rate converter, PropertyName
', PropertyValue
,
...)H
,
with the InterpolationFactor
property set to L
,
the DecimationFactor
property set to M
,
the Numerator
property set to NUM
,
and other specified properties set to the specified values.

Interpolation factor Specify the integer upsampling factor. The default is 

Decimation factor Specify the integer downsampling factor. The default is 

FIR filter coefficients Specify the FIR filter coefficients in powers of z^{1}.
The length of filter coefficients must exceed the interpolation factor.
Use a lowpass with normalized cutoff frequency no greater than 
clone  Create FIR sample rate convertor object with same property values 
getNumInputs  Number of expected inputs to step method 
getNumOutputs  Number of outputs of step method 
isLocked  Locked status for input attributes and nontunable properties 
release  Allow property value and input characteristics changes 
reset  Reset states of FIR sample rate converter 
step  Resample input with FIR rate converter 
This object implements the algorithm, inputs, and outputs described on the FIR Rate Conversion block reference page. The object properties correspond to the block parameters.