Get overall interpolation and decimation factors
returns the overall interpolation factor,
L, and the overall
M, corresponding to the
rateConverter. The rate converter object can be a
object™ or a
object. The rate change factors computed take into account the
OutputRateTolerance property. The overall decimation factor
affects the allowable frame size of the input to the object. The row length of the
input vector or matrix must be an integer multiple of
This function supports C and C++ code generation.
Create a default
dsp.FarrowRateConverter object that converts a signal from 44.1 kHz to 48 kHz.
frc = dsp.FarrowRateConverter
frc = dsp.FarrowRateConverter with properties: Main InputSampleRate: 44100 OutputSampleRate: 48000 OutputRateTolerance: 0 Specification: 'Polynomial order' PolynomialOrder: 3 Show all properties
Return the overall interpolation (L) and decimation (M) factors of the filter object.
[L,M] = getRateChangeFactors(frc)
L = 160
M = 147
src, a multistage sample rate converter with default properties.
src combines three filter stages to convert from 192 kHz to 44.1 kHz. Determine its overall interpolation and decimation factors.
src = dsp.SampleRateConverter; [L,M] = getRateChangeFactors(src)
L = 147
M = 640
L— Overall interpolation factor
Overall interpolation factor, returned as a scalar.
M— Overall decimation factor
Overall decimation factor, returned as a scalar. The overall decimation
factor affects the allowable frame size of the input to the object. The row
length of the input vector or matrix must be an integer multiple of