Plotting workspace variables in app designer
8 ビュー (過去 30 日間)
古いコメントを表示
I would like to plot a variable obtained in Workspace After simulation, against the time, through app designer push button.
I would like to know the syntax for the same.
0 件のコメント
回答 (1 件)
Kishan Dhakan
2021 年 6 月 23 日
Since you are able to obtain the variable in workspace, there must be some way to pass it to the MATLAB App designer (say via a function call, or running the process that gets you the variable inside app designer, etc.). Once you get the variable stored in app designer:
1) Drag and drop a button component and Axes component in app view. Click on the button. Click 'callbacks' on the right pane. Add a buttonPushed callback which takes you to the boilerplate code.
2) Add:
plot(UIAxes, variableYouWant)
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!