Compute permutations of vector and output as cell arrays
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I'm trying to calculate all of the permutation of a given vector, and then output these values in it's own cell array
If i use perms(A), it gives me all of the permutations, except that it is in matrix form, i.e. [1 2 3;1 3 2;2 3 1;2 1 3;3 1 2;3 2 1]
Is there a way i can take this output, and output each row of the matrix as it's own cell array?
0 Commenti
Risposte (1)
Vedere anche
Categorie
Scopri di più su Matrices and Arrays 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!