How do I call the dsp toolbox "peak finder" from code?
Show older comments
Hi all,
In dsp toolbox, I created a "SpectrumAnalyzer" system object to monitor the frequency spectrum of my microphone input in real-time. Although I can detect the peak frequencies by "tool menu -> peak finder", I want to use a code to return the peak frequencies directly in the script or command window for further process. Is it possible to do that?
Many thanks, T

3 Comments
Romano Geerling
on 15 Nov 2016
You can:
https://nl.mathworks.com/help/signal/ref/findpeaks.html
Tianqi Xu
on 15 Nov 2016
Tianqi Xu
on 15 Nov 2016
Answers (1)
Puneet Rana
on 23 Feb 2017
0 votes
Hi Tianqi,
Categories
Find more on Spectral Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!