|
楼主 |
发表于 2011-5-28 17:38
|
显示全部楼层
回复 4 # wangyouyi 的帖子
好的,举个例子吧
function chaoqigongkuang
figure;
r1 = uicontrol(gcf,'style','radio','String','10','BackgroundColor','y',...
'unit','normalized','position',[0.62,0.72,0.1,0.05],'Callback',@r1call);
r2 = uicontrol(gcf,'style','radio','String','26','BackgroundColor','y',...
'unit','normalized','position',[0.75,0.72,0.1,0.05],'Callback',@r2call);
function r1call(r1,eventdata,handles)
val1=get(r1,'Value');
if val1==1
set(r2,'Value',0);
end
如何在函数r1call中让句柄r2有效,谢谢 |
|