parameters = 0:.1:1
A = [ parameters ; exp( parameters )]fileID = fopen('results.doc','w')fprintf(fileID,'%6s %12s\n','parameters ','rms')fprintf(fileID,'%6.2f %30.8f\n',A)fclose(fileID)
%as you see that users cannot choose directory or filename in these codes. I want to create a pushbutton in GUI for saving this doc file. When users push the button a dialog box which enables users to choose filename and directory for saving this file needs to open.
What kind of codes I need?
Best Answer