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

axishandles

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?

Best Answer

Yes, that is the only difference. And it would be perfectly valid to use
comp1 = axes;
handles.comp1 = comp1;