From: Andrea on
I need to find the divergence of a 2D vector field, A= xuX + yuY as an example. I understand I need to get the derivatives, the problem is that I have to use DIVERGENCE application; so I would have to give a range to the variables? the command is div = divergence(X,Y,U,V) or div = divergence(U,V)

I'm not so sure of the procedure. What should I do?