How to put yticklabels (with ticks) on the other (right) side?

73 次查看(过去 30 天)
I simply tried ax.YAxisLocation = 'right'; but not working, why? And what if I want ticks on both sides, but yticklabels on the right and ylabel on the left?

回答(1 个)

Robin Mailly
Robin Mailly 2023-10-14
set(gca, 'YAxisLocation', 'right');

类别

Help CenterFile Exchange 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by