Help needed in using resample function

12 ビュー (過去 30 日間)
Xylicia Richard
Xylicia Richard 2016 年 6 月 5 日
コメント済み: Xylicia Richard 2016 年 6 月 5 日
i'm upsampling a signal from 100k to 30M samples using upsample function of MATLAB. But when i use resample function, the output is different.How can i use resample to get exact output like that of upsample function?
  1 件のコメント
Xylicia Richard
Xylicia Richard 2016 年 6 月 5 日
Here out_I signal is Gaussain filtered.
out_I_up=upsample(out_I,5000); xx=300*fir1(100,1/5000); % order N=100, cutoff frequency=1/300 out_i=filter(xx, 1, out_I_up);
Can't i replace it with??
out_i=resample(out_I,3000,1);

サインインしてコメントする。

採用された回答

the cyclist
the cyclist 2016 年 6 月 5 日
upsample and resample do completely different things. upsample inserts zeros, while resample randomly pulls values from the array.
There is no way to make one function to behave like the other.
  1 件のコメント
Xylicia Richard
Xylicia Richard 2016 年 6 月 5 日
thanks a bunch!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by