can anyone help me to change the numbering in y axis to some names, say 'X', 'Y','Z' ?

4 vues (au cours des 30 derniers jours)
HABILA
HABILA le 29 Août 2018
Commenté : HABILA le 29 Août 2018
z=[215,803,1578,2386;304,1036,2082,2568;471,1208,2192,3403];
bar3(z);
set(gca,'XTicklabel',{'A','B','C','D'})

Réponse acceptée

KL
KL le 29 Août 2018
Just like how you've handled the X-Axis,
set(gca,'YTicklabel',{'X','Y','Z'})

Plus de réponses (0)

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by