Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
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);

Answers (1)

Matt J
Matt J on 5 Jul 2018
[S,T]=sort(x);

Community Treasure Hunt

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

Start Hunting!