Fourier transform of input data with varying sampling frequency

9 vues (au cours des 30 derniers jours)
Dipika Berry
Dipika Berry le 27 Jan 2024
Commenté : Paul le 29 Jan 2024
Hello, Could someone guide me with the code to plot the FFT of the attached data, since the sampling frequency of input data I have here is varying.
Thanks a lot.
  2 commentaires
Paul
Paul le 27 Jan 2024
Check out: nufft
Dipika Berry
Dipika Berry le 29 Jan 2024
@Paul okay thanks i will take a look at this function

Connectez-vous pour commenter.

Réponses (1)

Benjamin Thompson
Benjamin Thompson le 27 Jan 2024
FFT only works with constant sample time by definition. Try using the interp1 function to resample the data set into a fixed sample time.
  2 commentaires
Dipika Berry
Dipika Berry le 29 Jan 2024
ok Benjamin thanks I will try to run this
Paul
Paul le 29 Jan 2024
If going down this path, check out: Resampling Nonuniformly Spaced Signals

Connectez-vous pour commenter.

Catégories

En savoir plus sur Fourier Analysis and Filtering dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by