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