Community Profile # Sultan Mehmood

##### Last seen: 2 months ago
45 total contributions since 2018

• View details...

Contributions in
View by

Question

i want to diffuse the values Matrix ''C' by any substitution method. any simple method suggest me.
I = [12 23 34;23 45 56;12 34 58]; R = I(:)'; x=0.3; p=0.343; for n=2:9; if x(n-1)>=0 & x(n-1)<=p x(n)=x(n-1)/p; e...

2 months ago | 0 answers | 0

### 0

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

1 year ago | 1 answer | 0

### 1

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

1 year ago | 2 answers | 0

### 2

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

1 year ago | 2 answers | 0

### 2

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

1 year ago | 1 answer | 0

### 1

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 ?

1 year ago | 1 answer | 0

### 1

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

1 year ago | 0 answers | 0

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

1 year ago | 0 answers | 0

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

1 year ago | 1 answer | 0

### 1

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

1 year ago | 2 answers | 0

### 2

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

1 year ago | 2 answers | 0

### 2

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

1 year ago | 2 answers | 0

### 2

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

1 year ago | 1 answer | 0

### 1

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

1 year ago | 0 answers | 0

### 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);...

1 year ago | 1 answer | 0

### 1

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

1 year ago | 1 answer | 0

### 1

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

1 year ago | 1 answer | 0

### 1

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

1 year ago | 0 answers | 0

### 0

Question

how to permute the sequence? why it takes to much time .
wh

1 year ago | 0 answers | 0

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

1 year ago | 0 answers | 0

### 1

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

1 year ago | 1 answer | 0

### 3

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

1 year ago | 0 answers | 0

### 0

Question

how to use flag matrix in matlab ?
let j is a sequence.

1 year ago | 0 answers | 0

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

1 year ago | 2 answers | 0

### 2

Question

how to write in matlab?
flag(j)<------- 1, t(i)<------- j. which sign is used instead of arrow(<--------) between them.

1 year ago | 2 answers | 0

### 2

Question

how to suppose ergodric matrix from control perimeter ?
T={t(1),t(2),........t(L)} t(i) belongs to [1,L]

1 year ago | 0 answers | 0

### 0

Question

how to write or condition in if statement matlab?
if (j==i) , or (flag(j)==1)

1 year ago | 2 answers | 0

### 2

Question

how xor is used between two no.? or which command ?
LL=mod(176+233,256) xor (142);

1 year ago | 2 answers | 0