【发布时间】:2012-04-19 10:37:06
【问题描述】:
我在 GUI 上有一个复选框,可以在实时视频源上绘制一个矩形,但是,当我取消选中它时,我需要该矩形消失或被删除。 有人知道怎么做吗?
这是我的代码,我试过把东西放在 else 里面,但是没有用。
function Box(hObject,eventdata)
if (((get(hObject,'Value') == get(hObject,'Max'))))
% Checkbox is checked-take appropriate action
hold on;
rectangle('Position',[50,50,100,100],'EdgeColor','r')
else
end
【问题讨论】:
标签: matlab user-interface checkbox