How to plot the phase portrait of a second-order differential equation? I cannot use quiver
์กฐํ ์: 24 (์ต๊ทผ 30์ผ)
์ด์ ๋๊ธ ํ์
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
๋๊ธ ์: 0
์ฑํ๋ ๋ต๋ณ
์ถ๊ฐ ๋ต๋ณ (1๊ฐ)
์ฐธ๊ณ ํญ๋ชฉ
์นดํ ๊ณ ๋ฆฌ
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!