data = [3.2, 5.3, 1, 2.5, 6.6, 4.5, 3.4, 2.2, 9.1, 3.7, 1.3, 4.5, 4.3, 6.5, 3.5, 4.2, 4.8, 5.8, 7.5, 2.4, 3.9, 8.9, 6.2, 7.1, 6, 3.5, 4, 5.7, 2.4, 1.2, 3.9, 5.6, 5.6, 3.5, 7.6, 4.9, 7.5, 8.6, 7.2, 3.8, 4.4, 6.4, 5.5, 3.8, 6.4, 4.5, 5.1, 5, 3.7, 2];
hist (data, 10, "facecolor", "r", "edgecolor", "b");
xlabel('Data (units)', 'FontSize', 16)
ylabel('Frequency', 'FontSize', 16)
axis('tight')
set(gca,'FontSize',16)
To embed this project on your website, copy the following code and paste it into your website's HTML: