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

📄 program_6a.m

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

% Control to a period-2 orbit (Figure 6.3(b)).
clear
itermax=200;
mu=4;k=0.217;
x(1)=0.6;
for n=1:2:itermax
    x(n+1)=mu*x(n)*(1-x(n));    
    x(n+2)=mu*x(n+1)*(1-x(n+1));
    if n>60                       % Switch on the control when n>60.
    x(n+1)=k*mu*x(n)*(1-x(n));    % Nudge the system every second iterate.
    x(n+2)=mu*x(n+1)*(1-x(n+1));
    end
end
hold on
    plot(1:itermax,x(1:itermax))
    plot(1:itermax,x(1:itermax),'o')
fsize=15;
set(gca,'xtick',[0:50:itermax],'FontSize',fsize)
set(gca,'ytick',[0,1],'FontSize',fsize)
xlabel('n','FontSize',fsize)
ylabel('\itx_n','FontSize',fsize)
hold off

% End of Program_6a.

⌨️ 快捷键说明

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