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

5 ビュー (過去 30 日間)
ARP
ARP 2019 年 12 月 4 日
回答済み: Adam Danz 2019 年 12 月 4 日
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

採用された回答

Adam Danz
Adam Danz 2019 年 12 月 4 日
Specify the axis handle
hold(app.Axis_1,'on')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by