Adding label to axis ticks
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yi-xiao Liu
am 30 Sep. 2020
Kommentiert: Yi-xiao Liu
am 2 Okt. 2020
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/369094/image.png)
How do I add labels next to the 3 180 xticks? Like sampleA for the first one, sampleB for the second, etc. Thanks!
>> xt = xticks
xt =
Columns 1 through 5
0 180 360 450 630
Columns 6 through 9
810 900 1080 1260
>> xtl=xticklabels
xtl =
9×1 cell array
{'0' }
{'180'}
{'360'}
{'0' }
{'180'}
{'360'}
{'0' }
{'180'}
{'360'}
1 Kommentar
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Distribution 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!