フィルターのクリア

Spectrum difference - different number of points

1 回表示 (過去 30 日間)
Benoit Meriot
Benoit Meriot 2016 年 5 月 30 日
コメント済み: Benoit Meriot 2016 年 5 月 31 日
Hi everyone,
I have two signals with two diffrent sampling frequencies. Hence, my frequency vector is diffrent for each fft. I would like to have the diffrence between the two Spectrums i have. However i can not simply substract one result to the other one, since calulcation of fft is not preformed at exactly the same frequencies.
Is there a way to interpolate fft results on a choosen number of points, to be able to do this operation ?

採用された回答

the cyclist
the cyclist 2016 年 5 月 30 日
You could use interp1 to interpolate one (or both) signals after the fft.
  1 件のコメント
Benoit Meriot
Benoit Meriot 2016 年 5 月 31 日
Thanks a lot ! i feel ashamed of not finding such a simple solution... In fact i was trying to use interp, and not interp1. That's why it wasn't working...

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by