Filter löschen
Filter löschen

How to get value from GUI and use it into another .m file ?

4 Ansichten (letzte 30 Tage)
Muhammad Usama
Muhammad Usama am 16 Mär. 2016
Kommentiert: Javier Bastante am 18 Mär. 2016
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.

Antworten (1)

Javier Bastante
Javier Bastante am 16 Mär. 2016
  2 Kommentare
Muhammad Usama
Muhammad Usama am 16 Mär. 2016
Actually i want to pass value from an editbox(GUI) to a variable of an external function.
Javier Bastante
Javier Bastante am 18 Mär. 2016
var=get(handles.edit1,'String');
and then you can use:
global var
or
save *.mat var %As seen on previous link

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by