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

 Réponse acceptée

M Afshari
M Afshari le 14 Août 2022

0 votes

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.

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Centre d'aide et File Exchange

Produits

Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by