how to save value(to worksheet from gui)?

how to save value from gui edit text?

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 10 Jun. 2016

0 Stimmen

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

4 Kommentare

Hojae Ahn
Hojae Ahn am 10 Jun. 2016
Bearbeitet: Hojae Ahn am 10 Jun. 2016
do not work that code.... only disp value.. do not save worksheet,,,
Walter Roberson
Walter Roberson am 10 Jun. 2016
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 am 10 Jun. 2016
Bearbeitet: Hojae Ahn am 10 Jun. 2016
sorry.. work sheet mean.... not xlsx

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by