how to label both side on y axis?

32 ビュー (過去 30 日間)
ajeet verma
ajeet verma 2017 年 9 月 13 日
コメント済み: Walter Roberson 2019 年 2 月 17 日
as shown in attached figure, i am interested to label and text on both side left and right on y axis but i am unable to make this while i am using 'yyaxis left' but it is not supported by my matlab 2010a. so please help

採用された回答

KL
KL 2017 年 9 月 13 日
編集済み: KL 2017 年 9 月 13 日
For older versions plotyy should work.

その他の回答 (1 件)

Mark Matusevich
Mark Matusevich 2017 年 9 月 13 日
You should use
plotyy
If you find plotyy not flexible enough for you, I recommend you to search documentation installed with your MATLAB for the following article: "Using Multiple X- and Y-Axes" (at least this is how that article is named in documentation of R2009b).
If for some reason you don't have documentation installed, then read the following article https://www.mathworks.com/help/matlab/creating_plots/graph-with-multiple-x-axes-and-y-axes.html?s_tid=srchtitle. You will have to make changes for the code in the latter article as it aimed at the latest version of MATLAB, but it also explains the changes required for your version. But this is the last resort, because article in your documentation includes additional tricks that this link doesn't.
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 2 月 17 日
como poner dos series en el mismo grafico usando los 4 ejes
.... which means approximately
how to put two series on the same graph using the 4 axes

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeTwo y-axis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by