Plotting two(function) curve in same figure?how?

3 vues (au cours des 30 derniers jours)
Mary Jon
Mary Jon le 15 Nov 2013
Commenté : Md Nafiul Islam le 21 Déc 2017
can Iam plotting two(function) curve in one figure?how? y1=function y2=function x=1:1:40
plot(x,y1) plot(x,y2)
in same figure? how?

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 15 Nov 2013
Modifié(e) : Azzi Abdelmalek le 15 Nov 2013
plot(x,y1)
hold on
plot(x,y2)
%or
plot(x,y1,x,y2)
%or
plotyy(x,y1,x,y2)
  3 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 15 Nov 2013
Modifié(e) : Azzi Abdelmalek le 15 Nov 2013
figure
hold on
plot(x,y1)
plot(x,y2)
plot(x,y3)
%and so on
hold off
Md Nafiul Islam
Md Nafiul Islam le 21 Déc 2017
Thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by