Difference between [ handles.comp1 ]=axes and [ comp1=axes ]

2 次查看(过去 30 天)
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?

采纳的回答

Walter Roberson
Walter Roberson 2012-5-25
Yes, that is the only difference. And it would be perfectly valid to use
comp1 = axes;
handles.comp1 = comp1;
  3 个评论
Omair
Omair 2012-5-25
By the way, the code that you wrote is supposed to enable me to call the handle without typing [handle.] before it? Because its not doing that. What does that piece of code do?
Walter Roberson
Walter Roberson 2012-5-25
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by