- #1
cadi2108
- 1
- 0
Hi!
I need to write MATLAB script, which will be plotting corretation function for two-dimmensial system. Henon map is not my system, but is very popular, so solusion for henon map can be very helpful for me.
Have anybody know code for have plot like this: http://www.physics.emory.edu/~weeks/research/time/tseries6/autohen.gif? I wrote resolusion like it for logistic map, but it give me other type of plot:
Help please! Best regards.
I need to write MATLAB script, which will be plotting corretation function for two-dimmensial system. Henon map is not my system, but is very popular, so solusion for henon map can be very helpful for me.
Have anybody know code for have plot like this: http://www.physics.emory.edu/~weeks/research/time/tseries6/autohen.gif? I wrote resolusion like it for logistic map, but it give me other type of plot:
Code:
clear;
n1=400; %% no of lattice points in coordinate and parameter k1
n2=200; %% no of iterations to reach attractor
n3=400; %% no of iterations for bifurcation diagram
n4=5000; %% no of iterations for distribution and Lyapunov exponent
kk=[]; w1=[];
k1=3.7;
x1=0.1;
for it1=1:n2
y1=k1*x1*(1-x1); x1=y1;
end
for iter3=1:n4
y1=k1*x1*(1-x1); w1=[w1;y1]; x1=y1;
end
ww=.005 + linspace(0,.99,100);
w3=round(w1);
av1=mean(w3); % > the average
var1 = cov(w3); % > the variance
var2=var1;
ww=w3;
for iter4=1:n2
ww=[ww(n4);ww(1:n4-1)];
zz=cov(w3,ww);
var2=[var2;zz];
end
var2=var2/var1;
bar(var2);
title('Autocorrelation function for the symbolic sequence');
axis([0 n2 -1 1]);
Help please! Best regards.