swap matrix row randomly
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (2)
Zeab
am 7 Nov. 2018
1 Stimme
A simple line of code working great!
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!