how to create a relation b/w two vector by scrambling of vector. let two vector R & S then scrambled and vector T is formed.

6 visualizaciones (últimos 30 días)
R & S s.that s(i)=r(t(i))

Respuesta aceptada

Walter Roberson
Walter Roberson el 28 de Jun. de 2018
t = randperm(length(r));
s = r(t);
  3 comentarios

Iniciar sesión para comentar.

Más respuestas (1)

Sultan Mehmood
Sultan Mehmood el 2 de Jul. de 2018
Editada: Walter Roberson el 2 de Jul. de 2018
plz help me is it true for pixel permutation.
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
plot(x);
A=sort(x);
T=randperm(length(x));
A(n)=x(T(n));
I = imread('camera man.png');
R = I(:,:,1);
Z = reshape(randperm(numel(R)),size(R));
P=Z(:);
Q=P';
Y=randperm(length(Q));
y(n)=Q(T(n));

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by