Difference between [ handles.comp1 ]=axes and [ comp1=axes ]
조회 수: 1 (최근 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?
댓글 수: 0
채택된 답변
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
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 Center 및 File Exchange에서 Graphics Object Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!