s = [ 18 39 34 28 30 17 16 16 33 22 24 30 58 38 55 55 35 33 52 45 58 23 21 18 19 ];

hist(s);
title(sprintf('Midterm:   N=%d   Min=%d   Max=%d   Mean=%.0f   Median=%.0f   StdDev=%.0f', length(s), min(s), max(s), mean(s), median(s), std(s)));
xlabel('Score');
ylabel('Count');