How to shuffle matrix entries using MATLAB?

1 visualización (últimos 30 días)
Sajid Sarwar
Sajid Sarwar el 5 de Mzo. de 2020
Comentada: Aquatris el 5 de Mzo. de 2020
Let's suppose I have a 2by2 matrix. I need a code which gives me the matrices with same elements but at different positions e.g., for 2by2 matrix, 2^4 different combinations can be generated.

Respuesta aceptada

BobH
BobH el 5 de Mzo. de 2020
perhaps a modification based on the sample code showing use of perms?

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays 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!

Translated by