Need to create all possible sequences
Mostra commenti meno recenti
I have three complex sequences X1, X2, X3. Forexample X1=[2-i 3+4i 5+7i] X2=[7+8i 4-9i 7+9i] and X3=[2+i 4+8i 3-9i]. How can I create all the six possible sequences obained from permutations of X1, X2 and X3.
The sequences should look like as below:
7+8i 4-9i 7+9i 2-i 3+4i 5+7i 2+i 4+8i 3-9i.................2+i 4+8i 3-9i 7+8i 4-9i 7+9i 2-i 3+4i 5+7i. The total number of sequences in this case is 6 (3!).
Risposta accettata
Più risposte (1)
madhan ravi
il 18 Lug 2020
Modificato: madhan ravi
il 18 Lug 2020
perms(X)
1 Commento
Roland Niwareeba
il 18 Lug 2020
Categorie
Scopri di più su Variables in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!