How to customise the zlabel?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Tony Castillo
am 3 Aug. 2022
Kommentiert: Tony Castillo
am 3 Aug. 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
0 Kommentare
Akzeptierte Antwort
Abderrahim. B
am 3 Aug. 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"])
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!