how to save value(to worksheet from gui)?

how to save value from gui edit text?

1 commentaire

Stephen23
Stephen23 le 10 Juin 2016
Modifié(e) : Stephen23 le 10 Juin 2016
You probably need to pass the data between workspaces. Read this to know how:

Connectez-vous pour commenter.

 Réponse acceptée

Walter Roberson
Walter Roberson le 10 Juin 2016
val1 = str2num( get(handles.editbox1, 'String') );
xlswrite('YourFile.xlsx', val1);

4 commentaires

Hojae Ahn
Hojae Ahn le 10 Juin 2016
Modifié(e) : Hojae Ahn le 10 Juin 2016
do not work that code.... only disp value.. do not save worksheet,,,
Walter Roberson
Walter Roberson le 10 Juin 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 le 10 Juin 2016
Modifié(e) : Hojae Ahn le 10 Juin 2016
sorry.. work sheet mean.... not xlsx

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by