Hi I now struggling in how to plot multiple figures in one axes, below is my code:
function PlotButtonPushed(app, event)
for j = 1:(10)
plot(app.UIAxes,app.RESULTS.profiles_hw(:,j),(app.FE_data.Z),'LineWidth',1)
hold(app.UIAxes,on)
end
end
in which, 'RESULTS' is a matrix contains 10 arraies.
How can I achieve this? My version is Matlab R2019a
Thank you very much!

 採用された回答

Cris LaPierre
Cris LaPierre 2019 年 4 月 15 日

1 投票

When you push the plot button, what error message are you getting? I suspect it says "Undefined function or variable 'on'."
Try changing your hold command to this:
hold(app.UIAxes,'on')

1 件のコメント

ZC Song
ZC Song 2019 年 4 月 15 日
It works! Thank you very much!!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Develop Apps Using App Designer についてさらに検索

タグ

質問済み:

2019 年 4 月 14 日

コメント済み:

2019 年 4 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by