using subplot

I want to use subplot to plot some figure with the same x-axis range and i dont want to have separated. I want to plot it closely together by using a single a-axis.

댓글 수: 1

Afeez
Afeez 2011년 7월 2일
I dont mean to plot all the data on a single plot, i actually need to put them (3 plots) one on top of the other and use the same a-axis but different y-axis

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

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 7월 2일

0 개 추천

Then it's not subplot. Just use plot() with the hold on command.
t=1:0.1:10;
plot(t,0.1*t);
hold on;
plot(t,sin(t));

댓글 수: 2

Afeez
Afeez 2011년 7월 2일
Thank you Jiang, i dont mean to plot all the data on a single plot, i actually need to put them (3 plots) one on top of the other and use the same a-axis but different y-axis;
Fangjun Jiang
Fangjun Jiang 2011년 7월 2일
Then, plotyy() can provide 2 y-axis on the left and right.

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

카테고리

도움말 센터File Exchange에서 Two y-axis에 대해 자세히 알아보기

태그

질문:

2011년 7월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by