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.

Antworten (1)

Voss
Voss am 27 Apr. 2024

0 Stimmen

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

Kategorien

Mehr zu Graphics Objects finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2023a

Gefragt:

am 27 Apr. 2024

Beantwortet:

am 27 Apr. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by