How translate a multiple y axis in a plot

1 回表示 (過去 30 日間)
Stefano Vigna
Stefano Vigna 2019 年 1 月 18 日
回答済み: Stefano Vigna 2019 年 1 月 23 日
Hello,
I have a question about the plot of multiple y axis, I need to have the graphics on the same origin x axis but different scale for the y plot. I have on the left y plot a vector of Voltage, with ripple ad on the right y plot a vector of Current. I want that these graphics have the same origin axis, maybe with a translation of the voltage ones to the origin. (i don't want change the value of the ripple)
  1 件のコメント
madhan ravi
madhan ravi 2019 年 1 月 18 日
plotyy() ?
yyaxis ?

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

回答 (2 件)

Areej Varamban Kallan
Areej Varamban Kallan 2019 年 1 月 22 日
Hi Stefano,
In my understanding, your requirement is to create two plots with different y-axis scaling. This can be achieved by using the yyaxis function, which enables you to create two y-axes in the same figure. You will be able to change the properties of each axis independent of the other.
Hope this helps

Stefano Vigna
Stefano Vigna 2019 年 1 月 23 日
I create the plot with thr yyaxis function, but i want shift the left graphic at the x-origin axis of the right one, unless change the value of the left plot.

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by