How to plot the phase portrait of a second-order differential equation? I cannot use quiver

์กฐํšŒ ์ˆ˜: 24 (์ตœ๊ทผ 30์ผ)
Batuhan Bilen
Batuhan Bilen 2021๋…„ 2์›” 23์ผ
๋Œ“๊ธ€: Batuhan Bilen 2021๋…„ 2์›” 27์ผ
๐‘ฅฬˆ+ ๐‘ฅฬ‡ โˆ’ ๐‘ฅ โˆ’ ๐‘ฅ 2 = 0
b. ๐‘ฅฬˆ+ 4๐‘ฅฬ‡ + 4๐‘ฅ = 0
c. ๐‘ฅฬˆโˆ’ 2๐‘ฅฬ‡ + 2๐‘ฅ = โˆ’8
d. ๐‘ฅฬˆโˆ’ 2๐‘ฅ โˆ’ ๐‘ฅฬ‡ โˆ’ 2 = 0
I need to plot the phase portrait of these systems. What is wrong?
syms t
syms x(t)
dx=diff(x);
d2x=diff(x,2);
eq=d2x+dx-x-x.^2==0;
t=linspace(-1,1,100);
for n=1:5
s1=dsolve(eq,x(0)==n,dx(0)==n);
s2=diff(s1);
s1=subs(s1);
s2=subs(s2);
plot(s1,s2);
hold on
n=n+1;
end

์ฑ„ํƒ๋œ ๋‹ต๋ณ€

SaiDileep Kola
SaiDileep Kola 2021๋…„ 2์›” 26์ผ
Check the answer on similar question answered here
  ๋Œ“๊ธ€ ์ˆ˜: 1
Batuhan Bilen
Batuhan Bilen 2021๋…„ 2์›” 27์ผ
danke schรถn

๋Œ“๊ธ€์„ ๋‹ฌ๋ ค๋ฉด ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.

์ถ”๊ฐ€ ๋‹ต๋ณ€ (1๊ฐœ)

Shadaab Siddiqie
Shadaab Siddiqie 2021๋…„ 2์›” 26์ผ
From my understanding you want to plot symbolic equation. Please refer ezplot which might help you.

์นดํ…Œ๊ณ ๋ฆฌ

Help Center ๋ฐ File Exchange์—์„œ Number Theory์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

์ œํ’ˆ

Community Treasure Hunt

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

Start Hunting!

Translated by