필터 지우기
필터 지우기

Three different graph on the same figure

조회 수: 2 (최근 30일)
Cem Eren Aslan
Cem Eren Aslan 2023년 6월 16일
답변: Star Strider 2023년 6월 16일
Hi all,
I have three different plot and i want to see these three graph on the same Figure seperately. How can i do that?
Thanks
  댓글 수: 1
S C
S C 2023년 6월 16일
You can use 'subplot',you can create the 3 graphs in one figure.
Here's an example:
figure(1)
subplot(3,1,1);
x = [1:0.1:10];
y1 = sin(x);
plot(x,y1)
subplot(3,1,2);
y2 = sin(2*x);
plot(x,y2)
subplot(3,1,3)
y3 = sin(4*x);
plot(x,y3)

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

답변 (1개)

Star Strider
Star Strider 2023년 6월 16일
I am not certain from your description what you want.
The subplot, tiledlayout and stackedplot functions may be appropriate.

카테고리

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