Construct a permutation matrix from two vectors
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,
If I have two vectors:
a = [1 ; 2 ; 3];
b = [4 ; 5 ; 6];
How can I constrcut a matrix that has the shape of:
Thanks.
0 Commenti
Risposta accettata
Più risposte (1)
Bruno Luong
il 23 Mar 2023
Modificato: Bruno Luong
il 23 Mar 2023
combinations, new stock function in R2023a
a = [1 ; 2 ; 3];
b = [4 ; 5 ; 6];
combinations(a,b)
0 Commenti
Vedere anche
Categorie
Scopri di più su Multidimensional 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!