⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 programs_12d.m

📁 《Dynamical Systems with Applications using MATLAB》一书是用来介绍离散和连续系统下动态非线性系统理论的经典教材(分形、混沌、非线性系统)。这里的附件包含
💻 M
字号:
% Chapter 12 - Bifurcations of Nonlinear Systems in the Plane.
% Programs_12d - Hopf Bifurcation.
% Copyright Birkhauser 2004. Stephen Lynch.

% Animation of Hopf bifurcation of a limit cycle from the origin.
% NOTE: Programs_12c must be in the same directory as Programs_12d.
clear
for j = 1:48 
    F(j) = getframe;
    mu=j/40-1;   % mu goes from -1 to 0.2.
global mu
options = odeset('RelTol',1e-4,'AbsTol',1e-4);
x0=0.5;y0=0.5;
[t,x]=ode45(@Programs_12c,[0 80],[x0 y0],options);  
plot(x(:,1),x(:,2),'b');  
axis([-1 1 -1 1])
fsize=15;
set(gca,'xtick',[-1:0.2:1],'FontSize',fsize)
set(gca,'ytick',[-1:0.2:1],'FontSize',fsize)
xlabel('x(t)','FontSize',fsize)
ylabel('y(t)','FontSize',fsize)
title('Hopf Bifurcation','FontSize',15);
 
 F(j) = getframe;

end

movie(F,5)

% End of Programs_12d.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -