What's the problem with this code? when I run it the following Error occurs:
Error using quiver
The size of X must match the size of U or the number of columns of U.
syms x y;f=input('enter function: ','s');f = symfun(eval(f), [x y]);u=-diff(f,x);v=-diff(f,y);[X,Y]=meshgrid(-10:.5:10);quiver(X,Y,u,v);
Best Answer