필터 지우기
필터 지우기

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 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