Creating matrix from 3d mesh
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Initially I had a matrix (512x512), I created a 3d mesh using mesh() function. The figure showed me peaks. I wanted to extract the matrix for each peak and then calculate the volume. I came across two cases for the solution:
- https://de.mathworks.com/matlabcentral/answers/277512-how-to-find-peaks-in-3d-mesh
- https://stackoverflow.com/questions/45106812/find-volume-of-3d-peaks-in-matlab
In both cases the data generated in the form of X, Y, Z. This is however not my case. How can I extract matrices for each peak?

1 Commento
Walter Roberson
il 2 Mag 2019
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.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!