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
madhan ravi
madhan ravi 2019 年 5 月 17 日
編集済み: madhan ravi 2019 年 5 月 17 日
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 ExchangeTwo y-axis についてさらに検索

質問済み:

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