How to transfer variables between GUIs??
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
minu s
am 5 Jul. 2018
Bearbeitet: Stephen23
am 5 Jul. 2018
I am facing a problem with the transfer of variables between the GUIs. I have used the matlab function 'getappdata' to store the variables and 'setappdata' to load the variable in another GUI. But I am getting an error message as " Error using setappdata Too many output arguments." I am not able to solve this issue. Kindly help me.
0 Kommentare
Akzeptierte Antwort
Stephen23
am 5 Jul. 2018
Bearbeitet: Stephen23
am 5 Jul. 2018
"I have used the matlab function 'getappdata' to store the variables and 'setappdata' to load the variable in another GUI"
It looks like you have used the exactly the wrong way round: setappdata is for storing data in a graphics object, getappdata is for getting it back out again:
setappdata(obj,'name',val)
val = getappdata(obj,'name')
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Maintain or Transition figure-Based Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!