马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
<P>用popup调用不同函数程序如下:<br>clf reset <br>set(gcf,'unit','normalized','position',[0.1,0.4,0.85,0.35]);<br>set(gcf,'defaultuicontrolunits','normalized');<br>set(gcf,'defaultuicontrolfontsize',11);<br>set(gcf,'defaultuicontrolfontname','隶书');<br>set(gcf,'defaultuicontrolhorizontal','left');<br>str='Data reconciliation';<br>set(gcf,'name',str,'numbertitle','off'); <br>h_pop=uicontrol(gcf,'style','popup',... <br> 'unit','normalized','position',[0.8,0.73,0.18,0.12],...<br> 'string','无|hanshu1|hanshu2|打印','callback',...<br> ['val3=get(h_pop,"value");'...<br> 'if val3==2,tu1;',...<br> 'elseif val3==3,tu2;',...<br> 'elseif val3==4,prnt;end;']); <br>我感觉没错呀,怎么总显示如下错误??</P>
<P>??? Error while evaluating uicontrol Callback.</P>
<P>??? Error: Missing variable or function.<br>郁闷好长时间了,请大家帮帮忙<br></P><br>
[此贴子已经被ericlin于2006-6-17 18:37:30编辑过]
|