How to plot a graph with multiple y axis like this photo?

2 件のコメント

Vishavjit Singh
Vishavjit Singh 2017 年 9 月 15 日
編集済み: Walter Roberson 2017 年 9 月 15 日
yyaxis left
plot(xi,Ti,'-','DisplayNAme','Torque');
ylabel('Torque, Nm','fontsize',12);
hold on
yyaxis right
plot(xi,Pi,'-','DisplayName','Power');
ylabel('Power, kW','fontsize',12);
Walter Roberson
Walter Roberson 2017 年 9 月 15 日
Note: yyaxis was introduced about 8 months after the question was originally asked.

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

回答 (1 件)

Mischa Kim
Mischa Kim 2014 年 1 月 31 日
編集済み: Mischa Kim 2014 年 1 月 31 日

0 投票

Ahmed, use the plotyy command.

カテゴリ

ヘルプ センター および File ExchangeTwo y-axis についてさらに検索

質問済み:

2014 年 1 月 31 日

コメント済み:

2017 年 9 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by