Is there any way to find it?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
new user 00
el 3 de Jul. de 2018
Comentada: new user 00
el 3 de Jul. de 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 comentarios
Respuesta aceptada
Rik
el 3 de Jul. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Structures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!