还是有错误,你能帮我看看这样的程序吗?callback = ['str=get(eh,''string'');','fh=fopen(''test.txt'',''w'');',...
'fwrite(fh,str);','fclose(fh);'];
figure
global eh;
eh = uicontrol( 'style','edit',...
'string','Input','position',[20 150 150 20]);
uicontrol( 'style','pushbutton',...
'string','保存',...
'callback',callback);