x=-1:0.1:1;
y=-1:0.1:1;
x=nonzeros(x);
y=nonzeros(y)
%y = y(y~=0);
dx=0.1;
[X,Y]=meshgrid(x,y);
u = 1./(X.^2);
v = 1./(Y.^2);
quiver(X,Y,u,v);
axis equal
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!