How can I get the 2 highest peaks ?
Show older comments
1)How can I get the 2 peaks from the picture below? Because these commands gives me the only the highest.
[gpeakG1,fpeakG1] = getPeakGain(G1);
gpeakG1_dB = 20*log10(gpeakG1);

Accepted Answer
More Answers (1)
Image Analyst
on 22 Mar 2016
0 votes
For #2, did you take a look at findpeaks()? (Requires the Signal Processing Toolbox.)
Categories
Find more on Get Started with Signal Processing Toolbox 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!