フィルターのクリア

app designer output data

2 ビュー (過去 30 日間)
Kenneth Befus
Kenneth Befus 2017 年 6 月 15 日
回答済み: Abhinav 2023 年 7 月 5 日
How can I save app designer data as an output file, like a .csv? How can I save app designer figures? When will this functionality be added?
  1 件のコメント
Kenneth Befus
Kenneth Befus 2017 年 6 月 15 日
bb = linspace(-pi,pi,50); y = 5*sin(bb); plot(app.UIAxes, bb,y);
assignin('base', 'bbb', bb)
There will be a 'bbb' data added to the normal matlab workspace

サインインしてコメントする。

回答 (2 件)

Kanishk Singhal
Kanishk Singhal 2023 年 7 月 5 日
You may want to look at uisave. This saves your data at your selected location in dialog box. This will save in a mat-file.
If you specifically want a .csv file this stackoverflow answer might help.
Hope this answers your question.

Abhinav
Abhinav 2023 年 7 月 5 日
There are quite a few ways of going about your problem.
  • you could use assignin() to move your data to the workspace as per your suggestion. Documentation
  • Use this setappdata function to store data in a UI. You can retrieve the data elsewhere in your code using the getappdata function. Both of these functions provide a convenient way to share data between callbacks or between separate UIs.
  • If you want to write the saved data to a csv file, you can use the writematrix function

カテゴリ

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