Selecting an area with a mouse on a 3D Plot
6 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Sean de Wolski
2013-3-4
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!