필터 지우기
필터 지우기

how ergodric matrix works?

조회 수: 1 (최근 30일)
Sultan Mehmood
Sultan Mehmood 2019년 6월 24일
댓글: Sultan Mehmood 2019년 6월 24일
x(1)=0.27;
q=0.3;
for i=2:65736;
if x(i-1)>=0 & x(i-1)<q
x(i)=(x(i-1)/q);
elseif x(i-1)>=q & x(i-1)<=0.5
x(i)=(x(i-1)-q)/(0.5-q);
else
x(i)=(1-x(i-1));
end
end
N=201;
X=[x(N:end)];
L=65536;
flag=zeros(1,L);
T = num2cell(randperm(65536, 65536));
T=flag;
for i=1:65536
j(i)=mod(floor(X(i)*10^15),L)+1;
if (j==i)|(flag(j)==1)
j(i)=mod(floor(X(i)*10^15),L)+1;
else
flag(j)=1; T=j;
end
end
is it fine.?
why the value of 'j' and T are same?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by