Main Content

getPolynomialCoefficients

Get polynomial coefficients of farrow rate conversion filter

Description

example

[C] = getPolynomialCoefficients(frc) returns the polynomial coefficients that the dsp.FarrowRateConverter System object™, frc, uses to implement the specified sample rate conversion.

Examples

collapse all

Create a default dsp.FarrowRateConverter System 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

  Use get to show all properties

Return the self-designed polynomial coefficients that the object uses to implement the specified rate conversion.

c = getPolynomialCoefficients(frc)
c = 4×4

   -0.1667    0.5000   -0.3333         0
    0.5000   -1.0000   -0.5000    1.0000
   -0.5000    0.5000    1.0000         0
    0.1667         0   -0.1667         0

Input Arguments

collapse all

Polynomial sample rate conversion filter, specified as a dsp.FarrowRateConverter System object.

Output Arguments

collapse all

Polynomial coefficients of Farrow rate conversion filter, returned as a M-by-M matrix, where M is the polynomial order.

Data Types: double

Version History

Introduced in R2014b