App designer: empty figure appears when running GUI with axes plot.

1 vue (au cours des 30 derniers jours)
ARP
ARP le 4 Déc 2019
Hi all,
I am trying to get used to the new App Designer.
I am having the issue that when running the App Designer with an axes plot (Axis_1), the code runs fine, but I get a seprate empty figure out of the GUI.
plot(app.Axis_1,ff,av_power(:,:),'k','LineWidth',2)
hold on
plot(app.Axis_1,ff,power(:,:),'r','LineWidth',1);
Any help much appreciated
Thanks
Picture1.jpg

Réponse acceptée

Adam Danz
Adam Danz le 4 Déc 2019
Specify the axis handle
hold(app.Axis_1,'on')

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by