Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to set 2 y-axis for data results

1 次查看(过去 30 天)
Mahome
Mahome 2019-3-17
关闭: MATLAB Answer Bot 2021-8-20
Hello,
I have data results which need to be plotted in TWO y-axises vs ONE x-axis,
( X , Y1 , Y2 )
40.0000 0.5778 152.8081
41.0000 0.5867 154.7064
42.0000 0.5956 156.5817
43.0000 0.6045 158.4348
44.0000 0.6134 160.2664
45.0000 0.6223 162.0774
46.0000 0.6312 163.8684
47.0000 0.6401 165.6400
48.0000 0.6491 167.3928
49.0000 0.6580 169.1275
Can you help with how I code this kind of plots?
Thank you
  1 个评论
madhan ravi
madhan ravi 2019-3-17
编辑:madhan ravi 2019-3-17
yyaxis left
plot(X,Y1)
yyaxis right
plot(X,Y2)
%or
plotyy(X,Y1,X,Y2)
Thank you, I've already tried this methods and they're not suitable for what I'm looking for.
I am looking to generate one plot along x-axis which they have relation vaules between each others, and reader can read this plot in two ways by looking to the Y1 with respecting X gives a result, by looking to Y2 with repecting Y1 gives a result or by looking to Y2 with repecting Y1 gives a result ... similar to the plot below (attached)

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by