i want to diffuse the values Matrix ''C' by any substitution method. any simple method suggest me.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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;
else
x(n)=(1-x(n-1))/(1-p);
end
end
A=sort(x);
[A,T]=sort(x);
Y=R(T);
C=reshape(Y,[3,3]);
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!