Question
The FINDPEAKS function does not consider peak points to be valid unless they are strictly greater than the immediately neighboring points. Reproduction Steps: good = [ 1 2 3 4 5 6 7 6 5 4 3 2 1]; % peak at 7 findpeaks(good) % this will return a value of 7 bad = [ 1 2 3 4 5 6 6 5 4 3 2 1]; % adjacent peaks at 6 findpeaks(bad) % this will return null [] I would like to be able to find flat tops (where the peak value is repeated a few times) using the FINDPEAKS function.
Expert Answer
Prashant Kumar
PhD Expert
Answered Aug 31, 2026
The ability to find peaks where the peak value occurs more than once is not available with FINDPEAKS function in Signal Processing Toolbox 6.6 (R2007b).
There are no workarounds.
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related matlab Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →