x = linspace(0,10,5); 
y = linspace(0,10,5);
[x,y] = meshgrid(x,y);
z = rand(5,5).^2;
xx = linspace(0,10,20); 
yy = linspace(0,10,20); 
[xx,yy] = meshgrid(xx,yy);
zz = interp2(x,y,z,xx,yy,'spline');
cla; hold on;
figure(1)
plot3(x,y,z,'or');
hold on
mesh(xx,yy,zz,'EdgeColor','black');
hold off
view(3)
axis square tight
grid on













