Finding harmonic amplitudes of a sine wave
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have got a sine wave as below, where I want to extract the amplitude of different harmonics from a data vector in matlab. can someone help me how to do it (other than fft maybe)?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/365596/image.png)
4 commentaires
Asad (Mehrzad) Khoddam
le 1 Oct 2020
Do you want to fit the data into a sine wave (single harmonic) ?
Réponses (1)
Image Analyst
le 1 Oct 2020
Looks like that is a pure sine wave with no harmonics. How did you generate it? Why do you think there are any harmonics? None are visible to me. Do the higher harmonics just have super small power - too small to be seen at the scale of the graph you have drawn?
Anyway, I'd try using findpeaks() if you want to do it in the time/spatial domain instead of using fft() or pwelch() to do it in the frequency domain.
1 commentaire
Image Analyst
le 3 Oct 2020
Syed, I assume you've had time by now to try this, but you forgot to get back to us. Did it work?
Voir également
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!