swap matrix row randomly
Mostrar comentarios más antiguos
Hello,
I have a 10x20 matrix and I`d like to change the rows randomly. For example, the 1st row will become, let`s say, the 9th, the 2nd will become the 5th, etc.
Any help?
Thank you.
Best,
Pavlos
Respuesta aceptada
Más respuestas (2)
Zeab
el 7 de Nov. de 2018
1 voto
A simple line of code working great!
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!