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개)
Fangjun Jiang
2011년 7월 2일
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
2011년 7월 2일
Fangjun Jiang
2011년 7월 2일
Then, plotyy() can provide 2 y-axis on the left and right.
카테고리
도움말 센터 및 File Exchange에서 Two y-axis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!