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);

 Accepted Answer

M Afshari
M Afshari on 14 Aug 2022
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.

More Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Release

R2022a

Asked:

on 14 Aug 2022

Answered:

on 14 Aug 2022

Community Treasure Hunt

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

Start Hunting!