How can I use edit box(GUI) data in multiple .m files?

1 vue (au cours des 30 derniers jours)
Alexandros Golemis
Alexandros Golemis le 29 Jan 2015
I have a GUI with some edit boxes and some buttons. I want every time that the user pushes the button to store the data of the edit box into a variable or an object that i can use it in every .m file of my project. I use this code
text = get(handles.edit1,'string');
set(handles.edit7,'string', text);
to handle the input into the GUI.m file.

Réponses (1)

Geoff Hayes
Geoff Hayes le 1 Fév 2015
Alexandros - consider using the save function to save your data (as MATLAB variables) to a file that can be easily loaded by your other m files.
  1 commentaire
Alexandros Golemis
Alexandros Golemis le 1 Fév 2015
thank you, i used file to store the user input, but i didn't used save. I just used fopen, fprintf to write and textscan to read..

Connectez-vous pour commenter.

Catégories

En savoir plus sur Workspace Variables and MAT Files dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by