how to use two y axis in plot?

回答(1 个)

doc plotyy

7 个评论

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
yes, I have tried this, but nothing is working
Show your code it’s totally useless with the phrase nothing is working
x = 1:120977;
y1 = daily_temp;
y2 = daily_rain;
y3 = bb;
figure
[hAx,hLine1,hLine2] = plotyy(x,y1,[x',x'],[y2',y3']);
I can't run your code without knowing y1,y2,y3

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by