How to remove outlier form boxchart graph ?
이전 댓글 표시
data = xlsread('data.xlsx');
x = 1:36;
figure();
ax = axes();
hold(ax);
for i=1:36
fig = boxchart(x(i)*ones(size(data(:,i))), data(:,i));
fig.BoxFaceColor = color(i,:);
end
I've got this boxchart with outlier show on them how can I hide them. I tried 'symbol' ' ' but it didn't work with boxchart it works with boxplot.

Or is there any way I can add different color to different box using this command.
boxplot(data(:,:),'symbol' ,' ' )
채택된 답변
추가 답변 (1개)
hxen
2023년 5월 31일
0 개 추천
You can also easily get rid of outliers using the isoutlier function to logically select only non-outlier values as follows:
data(~isoutlier(data));
카테고리
도움말 센터 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
