How can I use boxplot for 1000 dataset in x and y with certain defined number of boxes?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Pawan Kumar
am 31 Jan. 2022
Kommentiert: Pawan Kumar
am 2 Feb. 2022
I have 1000+ data in a and b.When I am plotting a vs b, I am getting a very conjusted and unclear plot.
I want a box plot between a and b with only certain number of boxes. How can I get that??
0 Kommentare
Akzeptierte Antwort
Sambit Supriya Dash
am 31 Jan. 2022
Bearbeitet: Sambit Supriya Dash
am 31 Jan. 2022
ax = gca;
hold on
boxplot(ax, a, 'Position', 1)
boxplot(ax, b, 'Position', 2)
ax.XLim = [min(a), max(a)];
ax.YLim = [min(b), max(b)];
OR Grouping them,
X = [a; b];
grp = [ones(size(a)); 2.*ones(size(b))];
boxplot(X, grp)
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!