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

2 Comments
Vishavjit Singh
on 15 Sep 2017
Edited: Walter Roberson
on 15 Sep 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);
Walter Roberson
on 15 Sep 2017
Note: yyaxis was introduced about 8 months after the question was originally asked.
Answers (1)
Mischa Kim
on 31 Jan 2014
Edited: Mischa Kim
on 31 Jan 2014
0 votes
Categories
Find more on Two y-axis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!