Phase portrait of a 2 dimensional system that converges to a unit circle

6 ビュー (過去 30 日間)
Penglin Cai
Penglin Cai 2020 年 6 月 5 日
コメント済み: Chen 2024 年 10 月 21 日
The dynamical system contains two ODES:
dxdt=(1-(x.^2+y.^2)).*x-3.*y.*(x.^2+y.^2);
dydt=(1-(x.^2+y.^2)).*y+3.*x.*(x.^2+y.^2);
where :
x(t)=cos(3*t);
y(t)=sin(3*t);
This system has a unstable solution: x(t)=y(t)=0.
I want to produce a phase portrait of this system which will look like this:
Please help me. I do not know what code to use in order to produce this plot. The aatachment is the question. Thank you for the help!!!!
  3 件のコメント
Penglin Cai
Penglin Cai 2020 年 6 月 6 日
Yes, the picture below is the original question, l really do not know what command to use in order to plot this graph. Thank you for your help.
Chen
Chen 2024 年 10 月 21 日
Hi, I've been studying coupled oscillators, can you tell me which book this is from?

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

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 6 月 6 日
編集済み: Ameer Hamza 2020 年 6 月 6 日
try this
dx_dt = @(x,y) (1-(x.^2+y.^2)).*x-3.*y.*(x.^2+y.^2);
dy_dt = @(x,y) (1-(x.^2+y.^2)).*y+3.*x.*(x.^2+y.^2);
[x, y] = meshgrid(-2:0.02:2, -2:0.02:2);
dx = dx_dt(x, y);
dy = dy_dt(x, y);
streamslice(x, y, dx, dy);
axis tight
axis equal
hold on
fplot(@(t) cos(3*t), @(t) sin(3*t), [0, 2*pi/3], 'Color', 'r', 'LineWidth', 2)
  2 件のコメント
Penglin Cai
Penglin Cai 2020 年 6 月 6 日
Thank you so much!!!!
Ameer Hamza
Ameer Hamza 2020 年 6 月 6 日
I am glad to be of help!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by