function lab03_7 ( )

%*****************************************************************************80
%
%% LAB03_7 makes a 3D surface plot of "Mexican hat" data.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    10 December 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'LAB03_7\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Make a 3D surface plot of Mexican hat data.\n' );
%
%  Define the grid.
%
  x = linspace ( - 8.0, 8.0, 33 );
  y = linspace ( - 8.0, 8.0, 33 );
  [ X, Y ] = meshgrid ( x, y );
%
%  Evaluate functions R(X,Y)  and Z(X,Y) on the grid.
%
  R = sqrt ( X.^2 + Y.^2 + eps );
  Z = sin ( R ) ./ R;
%
%  Display the surface Z(X,Y).
%
  surf ( X, Y, Z );

  filename = 'lab03_7.png';
  print ( '-dpng', filename );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved in "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'LAB03_7\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
