Load variables into the workspace with app button

7 visualizaciones (últimos 30 días)
Daniel
Daniel el 7 de Nov. de 2022
Comentada: Daniel el 7 de Nov. de 2022
Hi, right now im saving variables with the save() function into a .mat file, I need to load that variables into the matlab workspace. From matlab is easy, I just double click the .mat or use load(name.mat) and works, but I want to do it with a button with my app, I dont know if I need to use load() and im just using it wrong or theres another way.
Thank you.

Respuesta aceptada

Jakob B. Nielsen
Jakob B. Nielsen el 7 de Nov. de 2022
I think this one might answer your question too:
https://se.mathworks.com/matlabcentral/answers/452275-how-do-i-access-and-interact-with-the-variables-loaded-in-my-app
  1 comentario
Daniel
Daniel el 7 de Nov. de 2022
This worked perfect, thanks.
assignin('par1','par2',variable);

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by