필터 지우기
필터 지우기

plotting 3 functions in the same graph

조회 수: 1 (최근 30일)
Noi Sekuri
Noi Sekuri 2020년 4월 23일
답변: KSSV 2020년 4월 23일
How can I graph (x,y1), (x,y2), (x,y3) without having them overlapped ( I want to be able to distinguish them from each other) ? I want to have a graph which includes three of them at the same time.
x = from 1000 to 100000000
y1 = 1000 * x
y2 = x^2
y3 = x
  댓글 수: 2
Rik
Rik 2020년 4월 23일
What do you mean with the graphs not overlapping? y2 and y3 will overlap for x=1000. Or do you mean that each graph should have a different color?
Noi Sekuri
Noi Sekuri 2020년 4월 23일
What I mean is that when I plot these, I cannot distinguish between y1 and y3. I dont want this to happen.

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

답변 (1개)

KSSV
KSSV 2020년 4월 23일
subplot(311)
plot(x,y1)
subplot(312)
plot(x,y2)
subplot(313)
plot(x,y3)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by