% Compute and plot the independent Gaussian density in 2 dimensions
% for values of x and y in the range [-3,3]. Assumes that mu = 0.

cov = [1 0; 0 1];

x = linspace(-3, 3);
[XX, YY] = meshgrid(x);
Z = 1 / (2 * pi ) * exp(-(XX.^2 + YY.^2) / 2);
mesh(x, x, Z);
  
for elev = 20:20: 160,
  view(-37.5, elev);
  pause;
end
