Difference between [ handles.comp1 ]=axes and [ comp1=axes ]
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
What is the difference between defining an axis using {handles.comp1=axes} and {comp1= axes}
I'm guessing in the first case the axes has its handle stored in the handles structure and in the second it is not stored into it?
0 comentarios
Respuesta aceptada
Walter Roberson
el 25 de Mayo de 2012
Yes, that is the only difference. And it would be perfectly valid to use
comp1 = axes;
handles.comp1 = comp1;
3 comentarios
Walter Roberson
el 25 de Mayo de 2012
Be careful on "handles." compared to "handle."
The code I gave shows that an axes handle can be copied around like any other numeric value. You can store it in any numeric form that is convenient to you, in any kind of double precision variable.
Más respuestas (0)
Ver también
Categorías
Más información sobre Graphics Object Programming 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!