Filter löschen
Filter löschen

How to create a column combination?

1 Ansicht (letzte 30 Tage)
Dan Ibarra
Dan Ibarra am 23 Okt. 2021
Kommentiert: Jan am 23 Okt. 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 Kommentar
Jan
Jan am 23 Okt. 2021
What is the wanted output for [1,2,3; 4,5,6] ?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by