# How to derive the 2D field and convergence based on xy gradients

4 views (last 30 days)
Jakob Sievers on 1 Apr 2015
Answered: Jakob Sievers on 1 Apr 2015
Hi all
This might be an easy question but I am a bit stuck on it. The function gradient yields xy gradients of a 2D field:
But how do I move the other way? I.e.: z=f(px,py) where I have px and py and f is the unknown function/mechanism. My first thought revolves around using filter2 but I can't seem to figure it out.
Secondly: What would be an easy way to determine whether a region is subject to convergence/divergence?
Any thoughts?
Cheers
Jakob

Torsten on 1 Apr 2015
I don't understand what you mean by: determine whether a region is subject to convergence/divergence ?
Best wishes
Torsten.

Jakob Sievers on 1 Apr 2015
Edited: Jakob Sievers on 1 Apr 2015
Hi Torsten
Thanks for the swift response!
Reg. the second question:
I would like to locate mathematically points of convergence and divergence in a vector field. For instance, given the below figure I would like to find determine automatically the region/point of divergence on the left and convergence on the right. I know it might be a silly question but it seems unclear to me, how to progress with this at the moment.

Jakob Sievers on 1 Apr 2015
I just realized that the function div=divergence(U,V) will do just that. Thanks for your response!