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

2 comentarios

Vishavjit Singh
Vishavjit Singh el 15 de Sept. de 2017
Editada: Walter Roberson el 15 de Sept. de 2017
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.

Iniciar sesión para comentar.

Respuestas (1)

Mischa Kim
Mischa Kim el 31 de En. de 2014
Editada: Mischa Kim el 31 de En. de 2014
Ahmed, use the plotyy command.

Categorías

Etiquetas

Preguntada:

el 31 de En. de 2014

Comentada:

el 15 de Sept. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by