Load variables into the workspace with app button

조회 수: 9 (최근 30일)
Daniel
Daniel 2022년 11월 7일
댓글: Daniel 2022년 11월 7일
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.

채택된 답변

Jakob B. Nielsen
Jakob B. Nielsen 2022년 11월 7일
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
Daniel
Daniel 2022년 11월 7일
This worked perfect, thanks.
assignin('par1','par2',variable);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by