quadratic.m

来自「几种常见混沌时间序列matlab实现 1)chua flow 2)duffi」· M 代码 · 共 34 行

M
34
字号
%function x=quadratic(n,c,x0)
%_________________________________
%
% Simulation of the Quadratic map.
%    x'=c-x^2
%
% x is the simulated time series.
% n is the number of the simulated points.
% c is the a parameter
% x0 is the initial value for x.
%
%
clear;
close;
clc;

n=200;
c=1.95;
x0=0.1;



% Initialize
x(1,1)=c-x0^2;

% Simulate
for i=2:n
    x(i,1)=c-x(i-1,1)^2;
end

plot(x);
xlabel('n');
ylabel('x');
title('Quadratic map');

⌨️ 快捷键说明

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