Creating a Checkbox without GUI
显示 更早的评论
Hi!
I would like to know wether it is possible to create a checkbox without working in a GUI. I wrote a script for data analysis and would like to add a checkbox request afterwards.
Thanks, Maritn
回答(1 个)
Walter Roberson
2015-7-3
0 个投票
In MATLAB, "GUI" and "figure" are the same thing, so anything graphical you create is inside a GUI. In order to create a check box without a GUI it would have to be pure text. After that the feasibility starts to depend on how you want it to be used; for example if you are working with pure text then you do not have access to mouse positioning to tell whether the user moved over the text checkbox, because mouse positioning is a graphics object.
You can create a graphical checkbox without having to use GUIDE, by creating a uicontrol('style','checkbox'), but by definition a uicontrol is a user interface control that is part of a GUI.
类别
在 帮助中心 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!