islocalmax() with the 'all' option perhaps?
You might want to do some pre-processing, such as setting all of the values less than half max height to be the minima.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!