Filter löschen
Filter löschen

Spectrum difference - different number of points

1 Ansicht (letzte 30 Tage)
Benoit Meriot
Benoit Meriot am 30 Mai 2016
Kommentiert: Benoit Meriot am 31 Mai 2016
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 ?

Akzeptierte Antwort

the cyclist
the cyclist am 30 Mai 2016
You could use interp1 to interpolate one (or both) signals after the fft.
  1 Kommentar
Benoit Meriot
Benoit Meriot am 31 Mai 2016
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...

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by