Selecting an area with a mouse on a 3D Plot
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi everyone, I have what is perhaps a simple question. I have a 3D image (surf plot) that contain two peaks. What I would like to do is select just the area around the peak using my mouse. Then, I would like to be able to get certain information about this area. For example, I would like to know the average value of that area, the area under the curve, etc.
Specific Example: My x and y axes are simply x and y position and my z axis is the height. I want to select an area along x and y and then obtain the average value of z.
Thank you for any help!
0 Kommentare
Antworten (1)
Sean de Wolski
am 4 Mär. 2013
The easiest way:
surf(peaks)
brush on
right click "Create Variable"
If you could get away with a contour plot or 2d surface (i.e. view(2))instead of a 3d surface plot that opens it up to many more options like using an imroi object etc. If the above doesn't work, please explain why so I can point you in a different direction.
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!