I wrote codes which create a microsoft word and writes something inside it. I want to create a pushbutton which enables users to choose filename and directory to saving this file.
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on ActiveX in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!