Creating phase plot from initial data

2 ビュー (過去 30 日間)
Gavin Seddon
Gavin Seddon 2017 年 3 月 30 日
コメント済み: Star Strider 2018 年 3 月 21 日
I have a data table with no associated function, is it possible to generate the vector field and phase diagram from this? GS.
  2 件のコメント
KSSV
KSSV 2017 年 3 月 30 日
What data you have?
Gavin Seddon
Gavin Seddon 2017 年 11 月 15 日
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.

サインインしてコメントする。

採用された回答

Star Strider
Star Strider 2017 年 3 月 30 日
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 件のコメント
Gavin Seddon
Gavin Seddon 2018 年 3 月 21 日
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
Star Strider 2018 年 3 月 21 日
My pleasure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by