sample rate of a DUC object

1 回表示 (過去 30 日間)
Owen
Owen 2014 年 10 月 11 日
回答済み: Puneet Rana 2014 年 10 月 30 日
Hi,
I’m using the DUC system object to make frequency upconversions: http://www.mathworks.com/help/dsp/ref/dsp.digitalupconverter-class.html .
Question: Does the output sample rate equal to SampleRate * InterpolationFactor?
Owen

回答 (1 件)

Puneet Rana
Puneet Rana 2014 年 10 月 30 日
The concept of sample rate is a bit different in MATLAB, since it isn't directly attached to a signal. In the case of System objects like DUC, it is assumed that the input and output are for the same 'time duration'.
Here is an example: Consider a signal 'x' of 100 samples to use as the input to DUC.
x = randn(100,1);
If we set the SampleRate property of DUC object to be 100 Hz, this means the input 'x' to the object is a 1 second data (100samples / 100Hz). If the InterpolationFactor of the DUC is 50, then the output of step method of DUC will have 100*50 = 5000 samples. Now, since the input and output should correspond to the same time duration, the sample rate of the output should be deduced as: 5000 samples / 1 second = 5000 Hz.
In that sense, the output sample rate of DUC is SampleRate*InterpolationFactor.

カテゴリ

Help Center および File ExchangeArray and Matrix Mathematics についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by