MATLAB Answers

How can you display a Matlab figure stored on your computer in App Designer on the panel and plot on top of said figure?

4 ビュー (過去 30 日間)
Dudley Moore
Dudley Moore 2021 年 6 月 10 日
回答済み: Reshma Nerella 2021 年 6 月 21 日
I need to take a plot saved from a script and display it on the App Designer panel. I also need the ability to plot additional points on this figure.

回答 (1 件)

Reshma Nerella
Reshma Nerella 2021 年 6 月 21 日
Hi,
One possible solution is that,
  1. You can pass the UIAxes of the app as an argument to the function which has the script.
  2. While using plot in the script, set the parent to the UIAxes of the app.
  3. Set hold (app.UIAxes, 'on');
  4. Plot the required extra points.
Hope this helps!

Community Treasure Hunt

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

Start Hunting!

Translated by