How to get a surface handle
Mostrar comentarios más antiguos
Hello together,
in the Matlab Help for surf it Shows the command
h = surf(...) which returns a handle to a chart surface graphics object.
I'm not quite sure, what h is. Whats the difference to the handle I get, calling gcf?
My question is: How can I get the same handle like h just after I plotted the surface.
So i want to plot the surface with
surf(...) (without using h = surf(....))
and then later get the handle created with h.
Is this possible?
Thank you for your help
1 comentario
There are lots of graphics objects, each with handles. Why not read the documentation, which explains exactly how they are arranged:
Note that keeping and using the actual handle is always going to be faster an more robust. This is much better:
h = surf(...)
than anything involving gcf, gca, or findobj. You should think of these as conveniences for you while playing around in the command window, but never use them for serious code. They are far too unpredictable!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Lighting, Transparency, and Shading en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!