Get peak values from a Surface mesh figure?
Show older comments
Hello dear Matlab users !
Question for those who have lots of Matlab skills (i don't '^_^ ) and love to give some help
Let's say there is a figure (surface mesh) which plots a surface from 3 equal size matrices ("m" by "n"). And from that figure, peak values are of interest. Could somebody share an idea of how to get those peak values (x,y,z) without looking/searching for them manually please? (could be using the "Brush" [preferably], or a "fancy function"?... I have no Image Processing Toolbox too... i think lol)
Please look at attached image for example
Many thanks!
6 Comments
Scott MacKenzie
on 4 Aug 2021
Juan Vences
on 4 Aug 2021
Scott MacKenzie
on 4 Aug 2021
Hmm, OK, well then perhaps post your data.
Juan Vences
on 4 Aug 2021
Scott MacKenzie
on 4 Aug 2021
OK, I'll post a solution in a moment that does not use findpeaks.
Juan Vences
on 4 Aug 2021
Accepted Answer
More Answers (1)
Sulaymon Eshkabilov
on 4 Aug 2021
0 votes
You can use MATLAB's built in findpeaks() fcn to clocate local maxima of your data - see the doc: https://www.mathworks.com/help/signal/ref/findpeaks.html
1 Comment
Juan Vences
on 4 Aug 2021
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!