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.

Answers (1)

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

Categories

Find more on Graphics Objects in Help Center and File Exchange

Products

Release

R2023a

Asked:

on 27 Apr 2024

Answered:

on 27 Apr 2024

Community Treasure Hunt

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

Start Hunting!