Multiple combinations of a matrix
Afficher commentaires plus anciens
I have a matrix m, with 2 columns, M= [1, 2; 3, 4; 5, 6].
I need to the combinations of column one with its assocated column two entry.
For example:
x = [1, 2, 3, 4; 1, 2, 5, 6; 3, 4, 5, 6]
2 commentaires
Turlough Hughes
le 24 Avr 2020
Do you want to be able to do this generally for any number of rows?
Ulika Naidoo
le 24 Avr 2020
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Random Number Generation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!