How I make my phase portrait for several initial condition?
Mostra commenti meno recenti
I'm trying to draw several trajectories for my phase portrait. As an example I'm attaching the file of my function and code to integrate it.
How I put there command like if my parameter is less than or greater than 1/8.
2 Commenti
darova
il 8 Lug 2020
The question is unclear. Please explain more
priya anjali
il 8 Lug 2020
Risposte (1)
darova
il 8 Lug 2020
Here is a simple example
x0 = [1 2 3];
for i = 1:length(x0)
[t,x] = ode45(f,[0 2],x0(i));
line(t,x)
end
3 Commenti
priya anjali
il 8 Lug 2020
darova
il 8 Lug 2020
It's just an example. Put ode45 solver inside for loop and get several different solution varying initial condition x0
priya anjali
il 9 Lug 2020
Categorie
Scopri di più su Structural Mechanics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!