How to customise the zlabel?

1 vue (au cours des 30 derniers jours)
Tony Castillo
Tony Castillo le 3 Août 2022
Commenté : Tony Castillo le 3 Août 2022
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

Réponse acceptée

Abderrahim. B
Abderrahim. B le 3 Août 2022
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"])
  1 commentaire
Tony Castillo
Tony Castillo le 3 Août 2022
Thanks Sir

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by