i want to diffuse the values Matrix ''C' by any substitution method. any simple method suggest me.

1 Ansicht (letzte 30 Tage)
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]);

Antworten (0)

Kategorien

Mehr zu Operating on Diagonal Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by