From: Andrea on
I need help to calculate divergence in 2D with Matlab.
I need to use divergence application so I realized, the command should be div = divergence(X,Y,U,V)
The problem is that I don't know how to use it. How can I associate the function given in the problem to that command? I need an example please, I can't find any =(
From: Torsten Hennig on
> I need help to calculate divergence in 2D with
> Matlab.
> I need to use divergence application so I realized,
> the command should be div = divergence(X,Y,U,V)
> The problem is that I don't know how to use it. How
> can I associate the function given in the problem to
> that command? I need an example please, I can't find
> any =(

What do you have as input ?
Values of the vector field on an x-y-grid or
analytical expressions for U and V ?
What do you want to get as result ?
A numerical approximation or an analytical expression ?

Best wishes
Torsten.