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

1 view (last 30 days)
z=[215,803,1578,2386;304,1036,2082,2568;471,1208,2192,3403];
bar3(z);
set(gca,'XTicklabel',{'A','B','C','D'})

Accepted Answer

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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!