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

Asked by Omair on 25 May 2012
Latest activity Commented on by Walter Roberson on 25 May 2012

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 Comments

Omair

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 25 May 2012
Accepted answer

Yes, that is the only difference. And it would be perfectly valid to use

comp1 = axes;
handles.comp1 = comp1;

3 Comments

Omair on 25 May 2012

Thank you very much :)

Omair on 25 May 2012

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 on 25 May 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.

Walter Roberson

Contact us