필터 지우기
필터 지우기

How to Save All App Designer Fields and Values data in to .mat file ?

조회 수: 36 (최근 30일)
Anup Patil
Anup Patil 2023년 7월 21일
편집: Pratyush 2023년 7월 24일
Hi,
I am Developing an Application where some Configuration we are setting that same configuration I need to save and if Needed I can Import that in Application , Is there any way to Save All Variables (Values , Fields etc.. ) Will be save in .mat file and restore them ?

채택된 답변

Pratyush
Pratyush 2023년 7월 24일
편집: Pratyush 2023년 7월 24일
Hi Anup,
I understand that you want to save the confiuration of your app and restore it when required the next time. A similar question has been answered in the following link: How to save/restore state of App Designer app? This could be acheived programatically in the following way :-
  • To save the configuration add the following code to any function using which you want to save the configuration:
B= app.DataPointsEditField.Value;
save("config.mat", 'B');
  • To restore the configuration add the following code to the function using which you want to restore the configuration:
load("config.mat");
app.DataPointsEditField.Value = B;

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by