Spectrum difference - different number of points

5 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by