How to label the x axis in matlab for boxplot ?

Assume i have output data Y=10*3 ; when i want to plot boxplot for Y
boxchart(Y);
xlabel('Column')
ylabel('Power')
this is the output plat we get
Question: How to change the X-Axis rather than '1','2','3' as names like 'january', 'feb','mar'?

 Akzeptierte Antwort

Voss
Voss am 27 Feb. 2023

0 Stimmen

xticklabels({'january','feb','mar'})

4 Kommentare

Jay Chandra
Jay Chandra am 27 Feb. 2023
How to plot a mean of each month (it should inclued in sam egraph)
Y = rand(10,3);
boxchart(Y)
hold on
plot(mean(Y,1),'x')
xticklabels({'january','feb','mar'})
Jay Chandra
Jay Chandra am 27 Feb. 2023
Thankyou Voss
Voss
Voss am 27 Feb. 2023
You're welcome!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Version

R2021a

Tags

Gefragt:

am 27 Feb. 2023

Kommentiert:

am 27 Feb. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by