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

2 Ansichten (letzte 30 Tage)
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:
[px,py] = gradient(z);
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

Akzeptierte Antwort

Torsten
Torsten am 1 Apr. 2015
For your first question:
https://www.mathworks.com/matlabcentral/newsreader/view_thread/313599
For your second question:
I don't understand what you mean by: determine whether a region is subject to convergence/divergence ?
Best wishes
Torsten.

Weitere Antworten (2)

Jakob Sievers
Jakob Sievers am 1 Apr. 2015
Bearbeitet: Jakob Sievers am 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
Jakob Sievers am 1 Apr. 2015
I just realized that the function div=divergence(U,V) will do just that. Thanks for your response!

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by