程序如下:
edit_vaule=get(zheit16,'string')
[filename pathname]=uiputfile('*.txt';'save file');
str=strcat(pathname,filename);
fin=fopen(str,'wt');
if isequal(filename,0)||isequal(pathname,0)
return;
else
for m=1:size(edit_vaule,1);
fprintf(fin,'%s\n',edit_vaule(m,:));
end
fclose(fin);
end