Borrar filtros
Borrar filtros

How to create a column combination?

1 visualización (últimos 30 días)
Dan Ibarra
Dan Ibarra el 23 de Oct. de 2021
Comentada: Jan el 23 de Oct. de 2021
I have this matrix:
A=[1 1 1; 2 2 2]
And I want to create the following matrix:
A=[1 1 1; 1 1 2; 1 2 1; 1 2 2; 2 1 1; 2 1 2; 2 2 1; 2 2 2]
Is there any function similar to nshoosek?
  1 comentario
Jan
Jan el 23 de Oct. de 2021
What is the wanted output for [1,2,3; 4,5,6] ?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by