figure is not being displayed

I am trying to write a code for a trigeneration system and see the results to make necessary changes yet when i run the code, the output graph is emty and i dont understand why. please help as soon as possible.

Respuestas (1)

Voss
Voss el 27 de Abr. de 2024
All the plots in the 2nd, 3rd, and 4th figures are based on scalars. Plotting a scalar is plotting a single point, so it's not going to show up without a marker. Example:
x = 1;
y = 2;
figure
plot(x,y) % nothing shows up on the plot in this case
figure
plot(x,y,'o') % 'o' means mark the plotted point(s) with a circle

Categorías

Más información sobre Graphics Objects en Centro de ayuda y File Exchange.

Productos

Versión

R2023a

Preguntada:

el 27 de Abr. de 2024

Respondida:

el 27 de Abr. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by