Multiple combinations of a matrix
Mostrar comentarios más antiguos
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 comentarios
Turlough Hughes
el 24 de Abr. de 2020
Do you want to be able to do this generally for any number of rows?
Ulika Naidoo
el 24 de Abr. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Random Number Generation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!