How to shuffle matrix entries using MATLAB?

1 visualizzazione (ultimi 30 giorni)
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.

Risposta accettata

BobH
BobH il 5 Mar 2020
perhaps a modification based on the sample code showing use of perms?

Più risposte (0)

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by