MATLAB Answers


how to initialize the permutation sequence ?

Asked by Sultan Mehmood on 21 Jun 2019
Latest activity Commented on by Sultan Mehmood on 25 Jun 2019
Accepted Answer by Jan
i want to initialize the permutation sequence, T={t(1),t(2)......t(65536)}. and t(i) E [ 1, 65536] .


Sign in to comment.

1 Answer

Answer by Jan
on 21 Jun 2019
Edited by Jan
on 21 Jun 2019
 Accepted Answer

Maybe you mean:
T = num2cell(randperm(65536, 65536));


Show 1 older comment
on 24 Jun 2019
What exactly do you expect as contents of "t(i)"? Do you mean T{i} ?
t(i) is the entries of T.
t(i) are the elements of T.

Sign in to comment.