How to draw multiple plots in one plot in Matlab??

1 vue (au cours des 30 derniers jours)
sangita kamat
sangita kamat le 8 Sep 2018
I have some ellipses and curves to plot on same graph. How to do it? Please help

Réponses (2)

KALYAN ACHARJYA
KALYAN ACHARJYA le 8 Sep 2018
Modifié(e) : KALYAN ACHARJYA le 8 Sep 2018
Plot(1);
hold on;
plot(2);
.....
plot(n)
hold off;
Another way, if all having the same x scale, you can do the following also
plot(x,y1,x,y2,x,y3....)
  2 commentaires
sangita kamat
sangita kamat le 8 Sep 2018
Thanks Kalyan, but 'hold on' doesn't work.
KALYAN ACHARJYA
KALYAN ACHARJYA le 8 Sep 2018
Modifié(e) : KALYAN ACHARJYA le 8 Sep 2018
Can you share the code? So that I can try on it. Please, note on scaling range of variables and result.

Connectez-vous pour commenter.


Image Analyst
Image Analyst le 8 Sep 2018
See attached demo.

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