MATLAB: How can i generate chaos sequence

communications blocksetsequence generation

I want to generate chaos sequence using matlab,please provide me the code for this sequence generation

Best Answer

Hi Ammu,
You can use the logistic map.
x(n+1) = r*x(n)*(1-x(n))
%sequence is chaotic where 3.57 < r < 4.
r = 3.8; % r parameter for chaotic regime
size = 100; % size of chaotic array
x(1)= 4; % initial value
for i=1:size-1
x(i+1) = r*x(i)*(1-x(i));
end
%Now x is a chaotic array with 100 elements.
Hope this will help.
Özgür
Related Question