How to customise the zlabel?
1 次查看(过去 30 天)
显示 更早的评论
Dear all,
I have this figure but I want to change zlabel which is currently numbers by labels, such as A, B, C, D, and E. Could you give me some insights to workaround this?
Thanks in advance
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1087095/image.png)
0 个评论
采纳的回答
Abderrahim. B
2022-8-3
hI!
Something like this :
[X,Y] = meshgrid(1:0.5:10,1:20);
Z = sin(X) + cos(Y);
surf(X,Y,Z)
% ACHange z label
zticks ;
zticklabels(["A" , "B", "C", "D", "E"])
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!