Pass variables/structure to .mlapp (GUI/App designer)
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ashishkumar Gupta
el 8 de En. de 2023
Respondida: chrisw23
el 9 de Feb. de 2023
Hello,
I want to run my matlab script (.m file) amd want to pass data to GUI/.mlapp from my .m file(matlab script) workspace. The data can be a variable/structure.
Also, I want GUI to also pass some data back to .m file.
Thanks !!!
0 comentarios
Respuesta aceptada
Cameron
el 8 de En. de 2023
2 comentarios
Cameron
el 9 de En. de 2023
As @Image Analyst said below, you can use the save and load functions. Those are generally more accepted.
Más respuestas (3)
Image Analyst
el 9 de En. de 2023
0 comentarios
Walter Roberson
el 9 de En. de 2023
App designer creates code that defines an object class the derives from handle.
At least in theory, you could modify the constructor to accept additional parameters. Or probably better would be adding methods that accepted the handle object and the additional data, and performed an action and returned appropriate values.
0 comentarios
chrisw23
el 9 de Feb. de 2023
Calling your mlapp application from your script returns the app handle with full access to all public objects
myAppHandle = myApp()
Observed properties are an option to establish an event structure for bidirectional communication.
0 comentarios
Ver también
Categorías
Más información sobre Develop Apps Using App Designer 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!