This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

getActualOutputRate

Get actual output rate

Syntax

fsout = getActualOutputRate(rateConverter)

Description

example

fsout = getActualOutputRate(rateConverter) returns the actual output sample rate of the rateConverter object, taking into account the OutputRateTolerance property. The rate converter object can be a dsp.FarrowRateConverter System object™ or a dsp.SampleRateConverter System object.

Examples

collapse all

Set the tolerance of the filter to 1%, then return the actual output sample rate for the default conversion between 44.1 kHz and 48 kHz.

frc = dsp.FarrowRateConverter();
frc.OutputRateTolerance = 0.01;
FsOut = getActualOutputRate(frc)
FsOut = 4.8109e+04

The actual output rate can differ from the requested OutputSampleRate, within the configured tolerance.

Get the actual output sample rate for conversion between 192 kHz and 44.1 kHz when given a tolerance of 1%.

src = dsp.SampleRateConverter;
src.OutputRateTolerance = 0.01;
FsOut = getActualOutputRate(src)
FsOut = 4.4308e+04

Input Arguments

collapse all

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

Output Arguments

collapse all

Actual output sample rate of the filter, returned as a scalar in Hz.

Data Types: double

Introduced in R2014b