MATLAB Answers

0

how to initialize the permutation sequence ?

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

  0 Comments

Sign in to comment.

1 Answer

Answer by Jan
on 21 Jun 2019 at 14:04
Edited by Jan
on 21 Jun 2019 at 14:04
 Accepted Answer

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

  4 Comments

Show 1 older comment
Jan
on 24 Jun 2019 at 10:24
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.