how to use two y axis in plot?

how can I use two y axis in a single plot, I am using matlab 2015

답변 (1개)

madhan ravi
madhan ravi 2019년 5월 17일

1 개 추천

doc plotyy

댓글 수: 7

Puspa patra
Puspa patra 2019년 5월 17일
yes that I get, but I couldn't plot two or more parameters, like I have two parameters to plot in y left axis and the same with y right axis
Puspa patra
Puspa patra 2019년 5월 17일
yes, I have tried this, but nothing is working
madhan ravi
madhan ravi 2019년 5월 17일
Show your code it’s totally useless with the phrase nothing is working
Puspa patra
Puspa patra 2019년 5월 17일
x = 1:120977;
y1 = daily_temp;
y2 = daily_rain;
y3 = bb;
figure
[hAx,hLine1,hLine2] = plotyy(x,y1,[x',x'],[y2',y3']);
madhan ravi
madhan ravi 2019년 5월 17일
편집: madhan ravi 2019년 5월 17일
I can't run your code without knowing y1,y2,y3
Puspa patra
Puspa patra 2019년 5월 17일
thank you

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

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

질문:

2019년 5월 17일

댓글:

2019년 5월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by