How to shuffle matrix entries using MATLAB?

1 Ansicht (letzte 30 Tage)
Sajid Sarwar
Sajid Sarwar am 5 Mär. 2020
Kommentiert: Aquatris am 5 Mär. 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.

Akzeptierte Antwort

BobH
BobH am 5 Mär. 2020
perhaps a modification based on the sample code showing use of perms?

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays 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!

Translated by