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

2 次查看(过去 30 天)
z=[215,803,1578,2386;304,1036,2082,2568;471,1208,2192,3403];
bar3(z);
set(gca,'XTicklabel',{'A','B','C','D'})

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by