how to use two y axis in plot?

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

Answers (1)

doc plotyy

7 Comments

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']);
madhan ravi
madhan ravi on 17 May 2019
Edited: madhan ravi on 17 May 2019
I can't run your code without knowing y1,y2,y3
thank you

Sign in to comment.

Categories

Asked:

on 17 May 2019

Commented:

on 17 May 2019

Community Treasure Hunt

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

Start Hunting!