How to save & export .mlapp edit box results
1 回表示 (過去 30 日間)
古いコメントを表示
Hey dear MATLABer
I've been practice using MATLAB .mlapp (under R2017b) to build a GUI with multilple edit box, and some action buttons (like 'ok', 'continue' and 'cancel')
Since this GUI will be called by other .m functions, and I need to save and export the user typed numbers inside the edit box. But I am not sure how shall these data's been export, I know the edit box values are can be found in app.Editlabel1.Value, but how shall I save and handle this data outside .mlapp? And I also want to extend .mlapp
I have read one related question (https://www.mathworks.com/matlabcentral/answers/284140-call-an-mlapp-with-input-argument-s), but seems not helping with my case
0 件のコメント
回答 (1 件)
Cris LaPierre
2018 年 12 月 12 日
編集済み: Cris LaPierre
2018 年 12 月 12 日
5 件のコメント
Cris LaPierre
2018 年 12 月 13 日
That is your call as the code designer. Put it in a callback that executes when you want to save the variables to the workspace. It will have to be in a callback, but you can decide where based on the behavior you want.
It would be natural to put it in the callback of a button that will save when pressed.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!