How i can plot two graphs in one figure?

7 vues (au cours des 30 derniers jours)
Raidar Ali
Raidar Ali le 29 Déc 2018
Commenté : madhan ravi le 29 Déc 2018
tell me about the simplest commnd to plot the two graphs in one figure.

Réponse acceptée

madhan ravi
madhan ravi le 29 Déc 2018
Modifié(e) : madhan ravi le 29 Déc 2018
See https://www.mathworks.com/help/matlab/ref/hold.html , the command would be hold on
% an example
plot(1:10)
hold on
plot((1:10).^2)
Screen Shot 2018-12-30 at 12.40.17 AM.png
  1 commentaire
madhan ravi
madhan ravi le 29 Déc 2018
If it's what you are looking for make sure to accept the answer else let know

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by