How can I use edit box(GUI) data in multiple .m files?
4 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Geoff Hayes
2015-2-1
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!