Phase portraits of differential equations
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi all,
I am trying to sketch the phase portraits of the following differential equations, seperately
x˙ = 1 − 2 cos x
and
x˙=-x + 1/(1 + e^(-8 x)) - 0.5
I used some existing matlab codes that i found however it wasnt possible to draw the phase portraits.
Could you please help me with this?
Thank you very much
댓글 수: 0
채택된 답변
Sulaymon Eshkabilov
2021년 10월 31일
편집: Sulaymon Eshkabilov
2021년 10월 31일
Step 1. Take a derivative of your function 1 (F1) and 2 (F2) and save them dF1 and dF2. You can use syms x and diff() here.
Step 2. Compute their values (F1(x), F2(x), dF1(x), dF2(x)) at x (e.g.: x = -pi... pi). You can use subs() or just plugin the values of x into the expressions of F1, F2, dF1, dF2.
Step 3. Plot the computed values: F1 vs. dF1 in Figure 1 and F2 vs. dF2 in Figure 2. This is a phase plot.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!