Info

この質問は閉じられています。 編集または回答するには再度開いてください。

i get a problem how to face this in bitxor?

1 回表示 (過去 30 日間)
Sultan Mehmood
Sultan Mehmood 2019 年 7 月 12 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
II=[14 23;16 15];
R=II(:)';
x=0.3;
p=0.343;
for n=2:4;
if x(n-1)>=0 & x(n-1)<=p
x(n)=x(n-1)/p;
else
x(n)=(1-x(n-1))/(1-p);
end
end
A=sort(x);
[A,T]=sort(x);
Y=R(T);
r = 3.8;
L(1)= 0.234;
for i=2:4
L(i) = r*L(i-1)*(1-L(i-1));
end
mm=min(L);
nn=max(L);
oo=nn-mm;
Z=uint8(10*((L-mm)/oo))+1;
%CC(1)=bitxor(mod(11,256),mod((Y(1)+Z(1)),256));
for i=2:4
CC(1)=bitxor(mod(11,256),mod((Y(1)+Z(1)),256));
CC(i)=bitxor(mod(CC(i-1),256),mod(Y(i)+Z(i),256));
end
ZZ=reshape(CC,[2,2]);
how to get again "Y" from "CC"?
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 7 月 12 日
It is not obvious why you overwrite CC(1) each time through the loop ?

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by