How to customise the zlabel?

조회 수: 3 (최근 30일)
Tony Castillo
Tony Castillo 2022년 8월 3일
댓글: Tony Castillo 2022년 8월 3일
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

채택된 답변

Abderrahim. B
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개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by