Info
この質問は閉じられています。 編集または回答するには再度開いてください。
What is GUIDATA in graphical user interface ?
1 回表示 (過去 30 日間)
古いコメントを表示
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
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
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.
2 件のコメント
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!