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

6 Ansichten (letzte 30 Tage)
Mary Jon
Mary Jon am 15 Nov. 2013
Kommentiert: Md Nafiul Islam am 21 Dez. 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?

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 15 Nov. 2013
Bearbeitet: Azzi Abdelmalek am 15 Nov. 2013
plot(x,y1)
hold on
plot(x,y2)
%or
plot(x,y1,x,y2)
%or
plotyy(x,y1,x,y2)
  3 Kommentare
Azzi Abdelmalek
Azzi Abdelmalek am 15 Nov. 2013
Bearbeitet: Azzi Abdelmalek am 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 am 21 Dez. 2017
Thank you

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by