data1 = [0.66, 0.73, 0.79, 0.80, 0.81, 0.89, 0.94, 0.95, 0.96, 0.99, 1.03, 1.09, 1.09, 1.10, 1.10, 1.14, 1.15, 1.22, 1.27, 1.29];
data2 = [1.66, 1.67, 1.78, 1.79, 1.91, 1.91, 1.98, 1.99, 2.00, 2.02, 2.05, 2.11, 2.12, 2.18, 2.20, 2.23, 2.26, 2.28, 2.33, 2.35];
hist (data1, 5, "facecolor", "r", "edgecolor", "k");
hold on
hist (data2, 5, "facecolor", "b", "edgecolor", "k");
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: