Saving feature in MATLAB App designer

3 ビュー (過去 30 日間)
tyler seudath
tyler seudath 2021 年 2 月 24 日
回答済み: Mario Malic 2021 年 2 月 24 日
Hi Everyone,
I created a multiple choice quiz on MATLAB app designer and I wanted to it is possible for users to save their work if they did not complete the quiz.
Thank you,
TS

回答 (1 件)

Mario Malic
Mario Malic 2021 年 2 月 24 日
Hello,
Since app can't be saved, you will need to save the quiz data into the .mat file, and load it next time the app is opened.
If there's only one user who runs the app on his pc, you can create .mat file with the quiz data, when the user clicks close button (https://www.mathworks.com/help/matlab/ref/matlab.ui.figureappd-properties.html#mw_298b0342-aa53-4f7d-a2f3-79a3451fb0a4 - CloseRequestFcn), and on startup, check if file exists, load it and fill the data.

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by