clear all
close all

  disp('Plot 2-D Normal')
  lw = 2; 
  set(0, 'DefaultAxesFontSize', 16);
  fs = 15;
  msize = 10;
  

figure(1)
mu = [-1 2];
Sigma = [3 -0.9; -0.9 1];
x = (mu(1)-5):0.2:(mu(1)+5); y = (mu(2)-3):0.1:(mu(2)+3);
[X,Y] = meshgrid(x,y);
f = mvnpdf([X(:) Y(:)],mu,Sigma);
f = reshape(f,length(y),length(x));
surf(x,y,f);
axis([-6 4 -1 5 0 .1])
xlabel('x'); ylabel('y');
figure(2)
contour(x,y,f,[.001 .01 .05 .1],'LineWidth',lw);
xlabel('x'); ylabel('y');


