How to save/access an axes's properties using the handles structure?
이전 댓글 표시
What is the syntax I can use to save an axes that I defined in a code file into the handles structure, and how can I access this handle from other code files?
댓글 수: 2
Image Analyst
2012년 5월 25일
Try the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
Omair
2012년 5월 25일
채택된 답변
추가 답변 (1개)
Stephen
2012년 5월 25일
0 개 추천
I used to know how to answer this better, and maybe a bit of reading will answer based on my advice. In each function of the GUI you must updates the structured variable that contains the handles or other information. a structured variable is something like s.handle and s.value, so you can pass the variable s throughout your GUI and it contains multiple things in it. Try searching youtube for a GUIDE tutorial, I think that's where I learned how to do it correctly. So, in that case, you'd have to include your handle axs into the overall gui handles structure to pass it along.
카테고리
도움말 센터 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!