drawing phase portrait given phase and magnitude (not ODEs)

1 次查看(过去 30 天)
I'm trying to plot the arrows in a 2D plane that corresponding to the complex number
f(x,y) = f0(x,y)e^(-i*phi(x,y))
Now, I know how to use quiver(x,y,u,v) if I had, say a 2D ode system, xdot = y and ydot = v, but I'm not sure how to go about doing it if I just have the magnitude and phase of a complex number.
For instance let's say f0(x,y) = 1 and I have a function phi(x,y) = h(x)*x+ g(y)*y, how would I use quiver to accomplish a 2D phase portrait?
I don't think the following works, does it?
[x,y] = meshgrid(-1:0.1:1,-1:0.1:1);
u = g(x)*x;
v = h(y)*y;
quiver(x,y,u,v)
Would appreciate any help, thanks in advance!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by