Selecting an area with a mouse on a 3D Plot
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Sean de Wolski
on 4 Mar 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.
See Also
Categories
Find more on Graphics Performance 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!