Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

What is GUIDATA in graphical user interface ?

조회 수: 1 (최근 30일)
Jalaj Bidwai
Jalaj Bidwai 2013년 7월 27일
마감: MATLAB Answer Bot 2021년 8월 20일
I am getting a hard time understanding guidata. I read many articles about it on mathworks site as well as other sites, but either none of them have explained it properly or I couldn't understand it:(. Can anybody please explain me in DETAIL about what guidata in simple words and is how it works and if possible please cite some EXAMPLE to explain it.
  댓글 수: 1
per isakson
per isakson 2013년 7월 27일
편집: per isakson 2013년 7월 28일
Did you try
doc guidata
????
I cannot give an answer as good as the one you will find in the documentation

답변 (1개)

Jan
Jan 2013년 7월 28일
편집: Jan 2013년 7월 28일
guidata stores a variable in the figure's ApplicationData and obtains it from there also. This is useful to store any data which belongs to a specific figure. guidata can be used to share variables between different callbacks.
Did you read doc guidata already?
  댓글 수: 2
Jalaj Bidwai
Jalaj Bidwai 2013년 7월 29일
what is the difference between Application data and GUI data?
Jan
Jan 2013년 7월 29일
The figure has a property, which is called 'ApplicationData':
get(gcf, 'ApplicationData')
But guidata is a command, which writes are reads to and from this property field.
Notice, that there are neither "Application data" nor "GUI data", because the upper/lower case and the spaces matter.
Let me ask again, if you have read the corresponding documentation already. Matlab's help is very good (with some limitations for the 2013a release, how sad), so it is efficient, if you read it.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by