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

67 vues (au cours des 30 derniers jours)
Mr M.
Mr M. le 21 Fév 2018
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?

Réponses (1)

Robin Mailly
Robin Mailly le 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!

Translated by