ushuffle the matrix elements
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Offroad Jeep
el 22 de Oct. de 2022
Respondida: John D'Errico
el 22 de Oct. de 2022
let a be any mXm matrix
e.g.
a = magic(3)
8 1 6
3 5 7
4 9 2
i want to shuffle the elements of the matrix so that they go to different positions
please guide.... Regards....
0 comentarios
Respuesta aceptada
John D'Errico
el 22 de Oct. de 2022
a = magic(3)
reshape(a(randperm(numel(a))),size(a))
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!