How to plot two plots in one graph?

1 visualización (últimos 30 días)
Shuqing Qi
Shuqing Qi el 2 de Feb. de 2021
Editada: Adam Danz el 3 de Feb. de 2021
How can I plot "Chaotic_Balance(0.02, 9, 18, 1)" and "Chaotic_Balance(0.02, 10, 18, 1)" in one graph and label them like the picture shows below (red and blue line with descriptions)?
  3 comentarios
Shuqing Qi
Shuqing Qi el 2 de Feb. de 2021
I used it in a new script, but it seemed not work as well. Why is it?
Mathieu NOE
Mathieu NOE el 2 de Feb. de 2021
hi
it would be more efficient maybe if you could share the code (and the data if needed)

Iniciar sesión para comentar.

Respuestas (1)

Adam Danz
Adam Danz el 2 de Feb. de 2021
Editada: Adam Danz el 3 de Feb. de 2021
Place it just before the i-loop
figure()
hold on
for i = 1:Year
...
end
hold off % optional

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by