フィルターのクリア

How to create a column combination?

1 回表示 (過去 30 日間)
Dan Ibarra
Dan Ibarra 2021 年 10 月 23 日
コメント済み: Jan 2021 年 10 月 23 日
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 件のコメント
Jan
Jan 2021 年 10 月 23 日
What is the wanted output for [1,2,3; 4,5,6] ?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by