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

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?

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 11월 15일
편집: Azzi Abdelmalek 2013년 11월 15일
plot(x,y1)
hold on
plot(x,y2)
%or
plot(x,y1,x,y2)
%or
plotyy(x,y1,x,y2)

댓글 수: 3

Mary Jon
Mary Jon 2013년 11월 15일
If Iam have more than two function let me said five function ,how can plot it in same figure?
figure
hold on
plot(x,y1)
plot(x,y2)
plot(x,y3)
%and so on
hold off
Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

제품

질문:

2013년 11월 15일

댓글:

2017년 12월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by