【MATLAB】チェックボックスツリーのチェック状態を取得する方法
显示 更早的评论
チェックボックスツリーを作成しました。
このとき、各ノードのチェック状態がONかoFFかを取得したいですが、方法が分かりません。
例:child2 == on のときLEDが光る 等を行いたいです。よろしくお願いいたします。
fig = uifigure('Name','config');
checkbox = uitree(fig,'checkbox','Position',[170 20 150 200]);
parent = uitreenode(checkbox,'Text','pare');
chil1 = uitreenode(parent,'Text','chil1');
chil2 = uitreenode(parent,'Text','chil2');
chil3 = uitreenode(parent,'Text','chil3');
expand(checkbox)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 C 共有ライブラリの統合 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!