Dear bosses, I want to draw the Hopf bifurcation image. Please help me, thank you. There are specific instructions below.
45 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dear bosses, in the ordinary differential equations, how to draw a parameter change to cause the value change, that is, Hopf bifurcation problem about ODE. For example, in the figure below, A = 0.5, \mu= 0.2, v = 0.3. \ beta is a variable. Now I want to draw the images of \beta and S and \ beta and R. Please help me. Please give me the MATLAB code. Thank you!
4 commentaires
Réponses (1)
darova
le 21 Mai 2020
What about this solution?
clc,clear
cla
for j = 0:4
beta = j;
F=@(t,y) [0.5-beta*y(1)*y(2)-0.2*y(1)
beta*y(1)*y(2)-0.3*y(2)];
[t,y] = ode45(F,[0 3],[0.4 0.5]);
line(t,y,'color',rand(1,3))
end
xlabel('beta');
ylabel('Density of juvenile prey, x_0(t)');
3 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!