function lab03_5 ( )

%*****************************************************************************80
%
%% LAB03_5 plots a histogram of yearly total snowfalls.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    10 December 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'LAB03_5:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Make a histogram of yearly total snowfall data.\n' );
%
%  Read the data from a file.
%
  y = load ( 'snowfall_data.txt' );

  [ m, n ] = size ( data );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  %d data records read from file.\n' );
%
%  For simplicity, copy column 10, and call it "inches".
%
  inches = y(:,10);

  histogram ( inches );
  grid on
  xlabel ( '<-- Total Yearly Snow in Inches -->' )
  ylabel ( '<-- Frequency -->' )
  title ( 'Yearly Snowfall in Michigan' )

  filename = 'lab03_5.png';
  print ( '-dpng', filename )
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'LAB03_5:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

