请大家帮个忙!!!!!!!!popup调用不同函数
<P>用popup调用不同函数程序如下:<br>clf reset <br>set(gcf,'unit','normalized','position',);<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',,...<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编辑过]
页:
[1]