All the posible combination of two matrices
Mostrar comentarios más antiguos
I have two matrix
A=[1]
and
B=[2 3 4]
find the all possible combination of these tow matrices is
the output
C=[1 2; 1 3; 1 4; 1 2 3; 1 2 4; 1 3 4; 1 2 3 4]
how to find it
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 17 de Dic. de 2012
0 votos
You cannot create a numeric matrix with a variable number of elements in each row.
4 comentarios
Jothi
el 17 de Dic. de 2012
Walter Roberson
el 17 de Dic. de 2012
You cannot get the result you asked for. Andrei's answer does not give you the result you asked for: it gives you a cell array, but you asked for a numeric array.
Jothi
el 17 de Dic. de 2012
Walter Roberson
el 17 de Dic. de 2012
xlswrite()
Categorías
Más información sobre Multidimensional Arrays 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!