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

1 回表示 (過去 30 日間)
Sultan Mehmood
Sultan Mehmood 2020 年 7 月 27 日
編集済み: dpb 2020 年 7 月 27 日
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 件)

カテゴリ

Help Center および File ExchangeOperating on Diagonal Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by