How to get value from GUI and use it into another .m file ?
1 次查看(过去 30 天)
显示 更早的评论
I have made a GUI. There is a function (.m file) which is not into the GUI but outside it. But i want to get a value from GUI and use it to that .m file and GUI as well.
0 个评论
回答(1 个)
Javier Bastante
2016-3-16
2 个评论
Javier Bastante
2016-3-18
var=get(handles.edit1,'String');
and then you can use:
global var
or
save *.mat var %As seen on previous link
另请参阅
类别
在 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!