figure;<BR>H1=uicontrol(gcf,'style','push',... <BR> 'unit','normalized','position',[0.4 0.2 0.2 0.1],... <BR> 'string','...',...<BR> 'callback',['aa=''s^2 + 2 s + 3'';','bb=''2 s^2 + 3 s + 4'';',...<BR> 'set(H2,''string'',aa);','set(H3,''string'',bb);']);<BR>H2=uicontrol(gcf,'style','edit',... <BR> 'unit','normalized','position',[0.25 0.7 0.5 0.05]);<BR>H3=uicontrol(gcf,'style','edit',... <BR> 'unit','normalized','position',[0.25 0.6 0.5 0.05]);<BR>H4=uicontrol(gcf,'style','text',... <BR> 'unit','normalized','position',[0.25 0.65 0.5 0.05],...<BR> 'string','-----------------------------------------------------------------------------------------');<BR><BR><BR>是不是这样的效果? |