why can't plot drawn in app designer?

My code in app designer works without any errors, the limits set with the datas but the plot can't be shown. Where's the problem? M_MED values change between 0 to 60, W_Turbine_MED values change between 60000 to 15000 and the M_disalinated_water values change between 0 to 1.7474. I'll be grateful to help me in this case.
axis(app.UIAxes,'tight');
plot(app.UIAxes,M_MED,W_Turbine_MED,'r',LineWidth=2);
yyaxis(app.UIAxes,'right');
hold on;
plot(app.UIAxes,M_MED,M_disalinated_water,'b',LineWidth=2);

 採用された回答

M Afshari
M Afshari 2022 年 8 月 14 日

0 投票

I found the solution. That was because of one of the functions of my code which the plot must draw from that, determined just 1 value instead of the matrix of values.

その他の回答 (0 件)

カテゴリ

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

製品

リリース

R2022a

質問済み:

2022 年 8 月 14 日

回答済み:

2022 年 8 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by