n= 3*100 matrix
i want to select 20 non repeating random column
so, final matrix will be
x=3*20 ;
where 3 rows should be the corresponding column value of the original matrix
Any help would be really appreciated.
Thanks

2 comentarios

Md Nazmul Hoque
Md Nazmul Hoque el 5 de Jun. de 2022
sorry for that bro, i'm kinda new.
i wanted the specific solution.
in the last one , i thought i couldn't explain it properly
thats why. anyway thank you for your support.

Iniciar sesión para comentar.

 Respuesta aceptada

Matt J
Matt J el 4 de Jun. de 2022
Editada: Matt J el 4 de Jun. de 2022

0 votos

x=n(:,randperm(100,20))

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 4 de Jun. de 2022

Comentada:

el 5 de Jun. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by