Is there any way to find it?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
new user 00
am 3 Jul. 2018
Kommentiert: new user 00
am 3 Jul. 2018
i have to load a file in one callback function of gui in matlab. It will have two arrays. But i don't know the name of the stored arrays. I need to retrive them and use them in another callback function of the same gui. How do i do these tasks?
0 Kommentare
Akzeptierte Antwort
Rik
am 3 Jul. 2018
You can load the variables into a struct with the following syntax
s=load('yourfile.mat');
Then you can get the variable names it contains with the fieldnames function. To share this data between the two callbacks, you can simply use the guidata handles struct.
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Structures 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!