# Creating phase plot from initial data

11 visualizaciones (últimos 30 días)
Gavin Seddon el 30 de Mzo. de 2017
Comentada: Star Strider el 21 de Mzo. de 2018
I have a data table with no associated function, is it possible to generate the vector field and phase diagram from this? GS.
##### 2 comentariosMostrar NingunoOcultar Ninguno
KSSV el 30 de Mzo. de 2017
What data you have?
Gavin Seddon el 15 de Nov. de 2017
You are welcome, I have tried the arc tangent with my table and it appears I should define two points and calculate the angle. Also I cannot calculate the gradient since it complains that my matrix is not equal, Possibly because I am using fxy (multivariate). Nevertheless I have been of data now to complete the job. GS.

Iniciar sesión para comentar.

Star Strider el 30 de Mzo. de 2017
Use the gradient function to create the derivatives.
See if this works with your data:
x = sin(0:0.5:2*pi*2); % Create Data
y = cos(0:0.5:2*pi*2); % Create Data
u = gradient(x); % Calculate ‘x’ Derivative
v = gradient(y); % Calculate ‘y’ Derivative
figure(1)
quiver(x, y, u, v)
grid
axis equal
##### 78 comentariosMostrar 76 comentarios más antiguosOcultar 76 comentarios más antiguos
Gavin Seddon el 21 de Mzo. de 2018
Hello, I have decided the best way forward is to draw a labelled triangle. Then using my derivative as the absolute hypotenuse Value, then the angle cos = adjacent/hypotenuse. Thank you. GS.
Star Strider el 21 de Mzo. de 2018
My pleasure.

Iniciar sesión para comentar.

### Categorías

Más información sobre Conversion Between Symbolic and Numeric en Help Center y File Exchange.

### Community Treasure Hunt

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

Start Hunting!

Translated by