This repository has been archived on 2021-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
scientificComputing/statistics/code/univariatedata.m

10 lines
199 B
Matlab

data = 2.0 + randn(40, 1);
bw = 0.8
boxplot(data)
hold on;
bar(2.0, mean(data), 0.5*bw);
errorbar(2.0, mean(data), std(data));
scatter(2.5+bw*rand(length(data), 1), data);
hold off;
xlim([0.2, 4.0])