function [xx,yy,z] = gaussian_plot_data(num_pts_x_and_y)
% By Neil E. Cotter, 14 Mar 2006.
% File gaussian_lot.m
%
% Create data for mesh plot of 2-D standard gaussian.
% Input:
%  num_pts_x_and_y = number of points to generate in both
%     x and y directions.  Gives num_pts_x_and_y^2 points.
% Outputs:
%  x = x-coordinates (longitude)
%  y = y-coordinates (latitude)
%  z = z-coordinates (altitude)


% Create the x,y pts
spacing = 10/(num_pts_x_and_y - 1);
x = -5 : spacing : 5.01;
y = -5 : spacing : 5.01;
[xx,yy] = meshgrid(x,y);

% Standard 2-D gaussian density function.
% Means = (0,0); variances = (1,1).
z = (1/(2*pi)) * exp(-( ((-xx).^2 + (-yy).^2) /2));

return
