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에서 Data Import and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!