フィルターのクリア

Info

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

how to create a relation b/w two vector a scrambling vector "T'' is formed. let two vector x & S then scramble vector T is formed.such that S(t)=x(t(i)).plzz help

2 ビュー (過去 30 日間)
Sultan Mehmood
Sultan Mehmood 2018 年 7 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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
S=sort(x);

回答 (1 件)

Matt J
Matt J 2018 年 7 月 5 日
[S,T]=sort(x);
  2 件のコメント
Sultan Mehmood
Sultan Mehmood 2018 年 7 月 9 日
[s,T]=sort(x) ; working but not correctly . help please
Matt J
Matt J 2018 年 7 月 9 日
Working but not correctly?

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

Community Treasure Hunt

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

Start Hunting!

Translated by