How to isolate peaks from a noisy power spectrum
7 次查看(过去 30 天)
显示 更早的评论
I have a noisy power spectrum with several distinguishable peaks. Does anyone know of an automated way to isolate the peaks in an automatic way? I have to do this for multiple power spectrums.
0 个评论
回答(1 个)
Star Strider
2019-2-25
The findpeaks (link) function comes quickly to mind. Also, the islocalmax (link) function, introduced in R2017b.
4 个评论
Star Strider
2019-3-4
‘I hope this covers some things.’
It does not add any useful information.
Note that you need to square the magnitude (using the abs function) of the normalised fft output to calculate power.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!