This is an example of how to create a histogram plot in MATLAB®.
Read about the "hist" function in the MATLAB documentation.
For more examples, go to MATLAB Plot Gallery - http://www.mathworks.com/discovery/gallery.html
The new histogram function in R2014b seems to be decent, but if you're using a previous version of Matlab and you want a more intuitive way to format histograms, consider histf described here: http://www.mathworks.com/matlabcentral/fileexchange/47552-histf/content//histf_documentation/html/histf_documentation.html
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.