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

2 Kommentare

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);
Note: yyaxis was introduced about 8 months after the question was originally asked.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Mischa Kim
Mischa Kim am 31 Jan. 2014
Bearbeitet: Mischa Kim am 31 Jan. 2014

0 Stimmen

Ahmed, use the plotyy command.

Kategorien

Gefragt:

am 31 Jan. 2014

Kommentiert:

am 15 Sep. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by