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

72 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Robin Mailly
Robin Mailly il 14 Ott 2023
set(gca, 'YAxisLocation', 'right');

Community Treasure Hunt

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

Start Hunting!

Translated by