Plot different values with different axes
이전 댓글 표시
hi everyone, i have to realize a graph in GUI like in picture.

so, i have torque data and power data. When i plot them on the graph, all data has the same y-axis (on the left). How can i obtain the second axis (for the power) on the right, each axis whit own scale?
I have also the possibility to select just only one parameter, so if i select only Power parameter, it has to plot always with its axis on the right side.
답변 (1개)
Thorsten
2015년 9월 25일
help plotyy
댓글 수: 2
Daniele Morello
2015년 9월 25일
Thorsten
2015년 9월 25일
plot(1:100, 1:100)
set(gca, 'YAxisLocation', 'right')
카테고리
도움말 센터 및 File Exchange에서 Axes Appearance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!