Selecting an area with a mouse on a 3D Plot
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Sean de Wolski
el 4 de Mzo. de 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.
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!