Effacer les filtres
Effacer les filtres

How to create a column combination?

1 vue (au cours des 30 derniers jours)
Dan Ibarra
Dan Ibarra le 23 Oct 2021
Commenté : Jan le 23 Oct 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 commentaire
Jan
Jan le 23 Oct 2021
What is the wanted output for [1,2,3; 4,5,6] ?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by