how to initialize the permutation sequence ?

i want to initialize the permutation sequence, T={t(1),t(2)......t(65536)}. and t(i) E [ 1, 65536] .

 Risposta accettata

Jan
Jan il 21 Giu 2019
Modificato: Jan il 21 Giu 2019
Maybe you mean:
T = num2cell(randperm(65536, 65536));

4 Commenti

Sultan Mehmood
Sultan Mehmood il 23 Giu 2019
Modificato: Sultan Mehmood il 23 Giu 2019
thanks.
how i can get t(i) from above ?
i need t(i) .
if
i=1:65536;
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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Software Development Tools in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by