App Designer data to mat file

조회 수: 13 (최근 30일)
Daniel
Daniel 2022년 10월 26일
편집: Adam Danz 2022년 10월 28일
Hi,
I need to save the data of the variables in my app designer to a mat file (I dont know right now if I need to create a mat file from 0 or just copy the results to a existing mat file). The data are numeric fields value.
  댓글 수: 2
J. Alex Lee
J. Alex Lee 2022년 10월 26일
at what step are you running into a problem/question?
Daniel
Daniel 2022년 10월 28일
Hi, right now I only need to know how can I save my variables from the app designer to the workspace and with that I think I can do what I need.

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

채택된 답변

Adam Danz
Adam Danz 2022년 10월 28일
편집: Adam Danz 2022년 10월 28일
  1. If you are saving the data from with an app callback function, then you just need to use save to save the data to a mat file.
  2. If you are saving the data from outside of the app such as from the base workspace, then you need to first access the data. To do that, the data should be stored as an app property (see step-by-step guide) and you need the handle to you app. See Three ways to access your app handle. Once you have the app handle, you can easily access any property including the property that stores your data and can save it using save().
Note that save has an "append" option in case you need to append a mat file.
Let us know if you have any follow-up questions.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by