[x,z] = meshgrid(-2:.5:2,-2:.5:2);
y=zeros(size(x));
u=zeros(size(x));
w=zeros(size(z));
v=z;
quiver3(x,y,z,u,v,w)
hold on
surf(x,y,z)
axis([-2 2 -1 2 -2 2])
xlabel('x')
ylabel('y')
zlabel('z')