Plot Multiple lines on the same Graph

5 vues (au cours des 30 derniers jours)
James Leak
James Leak le 4 Mar 2020
Hello!
I'm afraid this may be a little bit of a basic issue for many, however I'm still getting to grips with MATLAB. I am trying to plot my graphs all on one graph. I have been looking through the forums but there's a lot of information, but many of them quite different from each other. I was wondering if someone could help so that I can know what to do in the future?
I have uploaded my file also.
Many thanks!
  1 commentaire
KSSV
KSSV le 4 Mar 2020
Read about plot and holdon.

Connectez-vous pour commenter.

Réponses (1)

Hari Krishna Ravuri
Hari Krishna Ravuri le 9 Mar 2020
I understand that you want to retain current plot when adding new plots. Consider using
hold on
Please refer https://in.mathworks.com/help/matlab/ref/hold.html to know more about the hold command.
Hope this helps!

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by