高人请进!弹出对话框实现
def={'DPCA.txt'};<br> answer=inputdlg('请输入建模数据文件名','请输入文件名',1,def);<br>这是用GUI编程时形成的弹出对话框<br>请问用matlab语句能实现吗??用uicontrol能吗?[此贴子已经被ericlin于2006-6-17 18:38:10编辑过]
<P>可以</P> 应该是可以的,只是听说
回复:(0231508)高人请进!弹出对话框实现
是这个意思吗?<BR>figure;<BR>H1=uicontrol(gcf,'style','push',... <BR> 'unit','normalized','position',,... <BR> 'string','...',...<BR> 'callback',['prompt = {''Enter matrix size:'',''Enter colormap name:''};',...<BR> 'dlg_title = ''Input for peaks function'';','num_lines= 1;',...<BR> 'def={''20'',''hsv''};','answer=inputdlg(prompt,dlg_title,num_lines,def);',...<BR> 'set(H2,''string'',answer{2})']);<BR>H2=uicontrol(gcf,'style','edit',... <BR> 'unit','normalized','position',);
页:
[1]