Azzera filtri
Azzera filtri

How to create a column combination?

1 visualizzazione (ultimi 30 giorni)
Dan Ibarra
Dan Ibarra il 23 Ott 2021
Commentato: Jan il 23 Ott 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?

Risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by