How to customise the zlabel?

3 visualizaciones (últimos 30 días)
Tony Castillo
Tony Castillo el 3 de Ag. de 2022
Comentada: Tony Castillo el 3 de Ag. de 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

Respuesta aceptada

Abderrahim. B
Abderrahim. B el 3 de Ag. de 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"])

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by