Info

この質問は閉じられています。 編集または回答するには再度開いてください。

let x&T two vector.now permute the x with T to get Y such that "y=x(t(n)).n is itration...next step???

2 ビュー (過去 30 日間)
Sultan Mehmood
Sultan Mehmood 2018 年 7 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
A=[1 2 3;4 5 6;7 8 9]; B=A(:)'; x(1)=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 Q=sort(x); T=randperm(length(x)); Q(n)=x(T(n));

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by