how to use two y axis in plot?

Réponses (1)

madhan ravi
madhan ravi le 17 Mai 2019

1 vote

doc plotyy

7 commentaires

Puspa patra
Puspa patra le 17 Mai 2019
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 le 17 Mai 2019
yes, I have tried this, but nothing is working
madhan ravi
madhan ravi le 17 Mai 2019
Show your code it’s totally useless with the phrase nothing is working
Puspa patra
Puspa patra le 17 Mai 2019
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 le 17 Mai 2019
Modifié(e) : madhan ravi le 17 Mai 2019
I can't run your code without knowing y1,y2,y3
Puspa patra
Puspa patra le 17 Mai 2019
thank you

Connectez-vous pour commenter.

Catégories

En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange

Commenté :

le 17 Mai 2019

Community Treasure Hunt

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

Start Hunting!

Translated by