Phase portraits of differential equations
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ilias Minas
am 31 Okt. 2021
Bearbeitet: Sulaymon Eshkabilov
am 31 Okt. 2021
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 Kommentare
Akzeptierte Antwort
Sulaymon Eshkabilov
am 31 Okt. 2021
Bearbeitet: Sulaymon Eshkabilov
am 31 Okt. 2021
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!