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

70 views (last 30 days)
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?

Answers (1)

Robin Mailly
Robin Mailly on 14 Oct 2023
set(gca, 'YAxisLocation', 'right');

Community Treasure Hunt

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

Start Hunting!