how to get all combinations of a columns of six different matrices

2 ビュー (過去 30 日間)
vinjamoori vikas
vinjamoori vikas 2020 年 12 月 11 日
回答済み: KSSV 2021 年 7 月 15 日
I am trying to add all the combinations of columns of six different matrices. suppose I have 6 different matrices,each matrix is having 4 columns, I need to add the columns of six matrices with all combinations. so, Total of 4^6 column vectors in the combined vector.
Please suggest me the method without loops.
  1 件のコメント
Matt J
Matt J 2020 年 12 月 11 日
Your objective shows no dependence on the

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

回答 (1 件)

KSSV
KSSV 2021 年 7 月 15 日
idx = nchoosek(1:6,4)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by