how to save value(to worksheet from gui)?

 Accepted Answer

val1 = str2num( get(handles.editbox1, 'String') );
xlswrite('YourFile.xlsx', val1);

4 Comments

Hojae Ahn
Hojae Ahn on 10 Jun 2016
Edited: Hojae Ahn on 10 Jun 2016
do not work that code.... only disp value.. do not save worksheet,,,
Replace the "editbox1" part with the name of your edit box. Replace 'YourFile.xlsx' with the name of the file you want written to. And put the whole thing inside the Callback for the "save to worksheet" button.
Hojae Ahn
Hojae Ahn on 10 Jun 2016
Edited: Hojae Ahn on 10 Jun 2016
sorry.. work sheet mean.... not xlsx

Sign in to comment.

More Answers (0)

Asked:

on 10 Jun 2016

Edited:

on 10 Jun 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!