LABELLING PLOTS IN MATLAB
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to label my x-axis plot as three months June, July and August. I am plotting datasets against months , how do i label the x-axis
0 Kommentare
Antworten (1)
Ameer Hamza
am 13 Nov. 2020
If you have numeric values on x and y axis, you can set the xticklabels
x = linspace(1, 3);
y = rand(size(x));
plot(x, y);
xticks([1 2 3])
xticklabels({'June', 'July', 'August'})
0 Kommentare
Siehe auch
Kategorien
Mehr zu Axis Labels 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!