%********************************************************************
% Laplacian 3D Plotting Example
% Author: Balu Santhanam
% Date  : 03/08/01
% Signal Processing Exercises in MATLAB
%********************************************************************
x = [4:0.05:8]; y = [4:0.05:8];
[xgrid,ygrid]= meshgrid(x,y);
mu = [6;6]; sig1 = 1; sig2 = 1;
z = exp(-abs((xgrid-mu(1))/sig1)).*exp(-abs((ygrid - mu(2))/sig2));
v = exp([0:0.1:0.5]);
meshc(xgrid,ygrid,z)
set(gca,'FontName','Helvetica','FontSize',15)
xlabel('x variable')
ylabel('y variable')
zlabel('z variable')
title('2D Laplacian and Equiprobable contours')
axis square
orient tall 
hold off
print -deps lapl.eps
 
