照你的意思,亮度调节按钮按下后,set(h,'enable',’on‘)%h
滑动条对应的句柄
其他情况下,set(h,'enable',’off‘)%h
滑动条对应的句柄
h=figure('unit','normalized','name','Slider')hsl=uicontrol('parent',h,'unit','normalized','style','slider','position',[.01.53 . 3 .04],'min',0,'max',5)
ht1=uicontrol('parent',h,'unit','normalized','style','text','string','05','position',[.01 .57 .3.04],'fontsize',10)
ht2=uicontrol('parent',h,'unit','normalized','style','text','position',[.01.71 .3 .03])
set(hsl,'callback',['a1=get(hsl,''value'')'...
'set(ht2,''string'',a1)'])
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)