[x,y]=meshgrid(-2:.1:3,-5:.1:1);
f=cos(x+3*y);
surf(x,y,f);
xlabel('x');ylabel('y');
x=-2:.01:3;
z=cos(x+3*(-2));
figure(2);
plot(x,z);