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] .

 Respuesta aceptada

Jan
Jan el 21 de Jun. de 2019
Editada: Jan el 21 de Jun. de 2019
Maybe you mean:
T = num2cell(randperm(65536, 65536));

4 comentarios

Sultan Mehmood
Sultan Mehmood el 23 de Jun. de 2019
Editada: Sultan Mehmood el 23 de Jun. de 2019
thanks.
how i can get t(i) from above ?
i need t(i) .
if
i=1:65536;
Jan
Jan el 24 de Jun. de 2019
What exactly do you expect as contents of "t(i)"? Do you mean T{i} ?
Sultan Mehmood
Sultan Mehmood el 25 de Jun. de 2019
t(i) is the entries of T.
Sultan Mehmood
Sultan Mehmood el 25 de Jun. de 2019
t(i) are the elements of T.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Software Development Tools en Centro de ayuda y File Exchange.

Preguntada:

el 21 de Jun. de 2019

Comentada:

el 25 de Jun. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by