Question

how we check the key space analysis and key sensitivity analysis in matlab??

I = imread('camera man.png'); R = I(:)'; x=0.3; p=0.343; for n=2:65536; if x(n-1)>=0 & x(n-1)<=p x(n)=x(n-1)/p; else x...

9 months ago | 0 answers | 0

Question

why the subtraction gives the wrong ans.?

y=uint16(22); >> Z=uint16(164); >> S=y-Z S = 0 how i get an ans = -142

9 months ago | 2 answers | 0

Question

how to convert the fraction part into intger?

r = 3.342448; 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(254*((L-...

9 months ago | 2 answers | 0

Question

why i get an error ?

II=[114 223;176 155]; 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)...

9 months ago | 1 answer | 0

Question

how to add one element in matrix?

A=[23;23;24;13;24]' A = 23 23 24 13 24 z=12; A = 12 23 23 24 13 24 who to do this ?

9 months ago | 1 answer | 0

Question

i get a problem how to face this in bitxor?

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...

9 months ago | 0 answers | 0

Question

i get an error. ,whats wrong in DWT? how LoD and HiD works in DWT ?

X=imread('camera man.png'); imagesc(X) colormap gray [LoD,HiD] = wfilters('haar','d'); [cA,cH,cV,cD] = dwt2(X,LoD,HiD); sub...

9 months ago | 0 answers | 0

Question

i get an error.whats wrong? why the values of 'B' in intger instead of decimal.

II=[14 23;44 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...

9 months ago | 1 answer | 0

Question

i get an error .whats wrong ? Subscript indices must either be real positive integers or logicals. Error in (line 54) CC(j)=bitxor(mode(R(ii)+CC(j-1),256),K(i));

II= imread('camera man.png'); R =II(:)'; 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...

9 months ago | 2 answers | 0

Question

Index exceeds matrix dimensions. where is mistake

II=[14 23;44 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...

9 months ago | 2 answers | 0

Question

how to change the bit of any matrix?

A=[12 32 ;23 14]; >> D=A(:)'; >> S=de2bi(D); >> S=de2bi(D) S = 0 0 1 1 0 0 1 1 ...

9 months ago | 2 answers | 0

Question

how to do one bit difference between plain images in matlab .

Image= imread('camera man.png'); suppose A=[12 13;16 8]; A=[00001100 00001101; 0010000 00001000]; if 4th bit =0 the...

9 months ago | 1 answer | 0

Question

how to do this in matlab by the multiply constant matrix and the inversion matrix

x=0.3; p=0.343; for n=2:65536; 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...

9 months ago | 0 answers | 0

Question

Divide the shuffled sequence Q={Q1，Q2，Q3，···，Qm×n}. into MN/16 matrices which are 4×4. M=256 and N=256

x=0.3; p=0.343; for n=2:65536; 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);...

9 months ago | 1 answer | 0

Question

why taking mod this problem is occur ? where is the problem.

r = 3.8; size = 9; L(1)= 0.23; for i=2:size L(i) = r*L(i-1)*(1-L(i-1)); end for i=1:9 S(i)=floor(abs(L(i))); ...

9 months ago | 1 answer | 0

Question

why we use flag in matlab code and if we have sequence of integer then how the flag(integer)=1 ?

intger=(2,6,8,9) flag(intger)=1; how it works? how flag select the value of intger

9 months ago | 1 answer | 0

Question

how ergodic matrix works in matlab .? how i can check this one is right or wrong? any one help plz.

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...

9 months ago | 0 answers | 0

Question

how ergodric matrix works?

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)/...

10 months ago | 0 answers | 0

Question

how to change a one bit value of an image in matlab.? if image size 256*256 and just to change one pixel value ?

Image= imread('camera man.png');

10 months ago | 1 answer | 0

Question

how to initialize the permutation sequence ?

i want to initialize the permutation sequence, T={t(1),t(2)......t(65536)}. and t(i) E [ 1, 65536] .

10 months ago | 1 answer | 0

Question

how to set a one dimensional matrix flag ,which length is 65536 and each of its elements is zero.?

matrix flag 1*65536

10 months ago | 3 answers | 0

Question

how to get rid of transient effect for 'N' times. ? or which command is used for this?

x(1)=0.342564; q=0.35343; N=200; for n=2:65536; x(n)=(x(n-1)-floor(x(n-1)/q)*q)/q; end

10 months ago | 0 answers | 0

Question

how to remove first n entries from iterete sequence or vector.?

A=(1,2 ,3,4,5,6,7,8,9,10) remove first 3 values.

10 months ago | 2 answers | 0

Question

how to write in matlab?

flag(j)<------- 1, t(i)<------- j. which sign is used instead of arrow(<--------) between them.

10 months ago | 2 answers | 0

Question

how to suppose ergodric matrix from control perimeter ?

T={t(1),t(2),........t(L)} t(i) belongs to [1,L]

10 months ago | 0 answers | 0

Question

how to write or condition in if statement matlab?

if (j==i) , or (flag(j)==1)

10 months ago | 2 answers | 0

Question

how xor is used between two no.? or which command ?

LL=mod(176+233,256) xor (142);

10 months ago | 2 answers | 0

Question

how to return to a back step by checking back steps . problem in 4 and 5 step

step 2: x=0.3; x=0.3; p=0.343; for n=2:65536; 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...

10 months ago | 1 answer | 0