rearrange matrix elements randomly
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mireia Boneta Camí
am 9 Okt. 2020
Kommentiert: Ameer Hamza
am 9 Okt. 2020
I have a matrix and what i want to do is reorder the matrix elements/entries in a random order. for example if the matrix was :
A= [ 1 2 3;
4 5 6;
7 8 9]
i would like the elements randomly re-arranged, for example:
A = [ 6 9 1
2 5 7
3 8 4]
I would like to do it without using fors to do it more efficiently.
0 Kommentare
Akzeptierte Antwort
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!