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개)

KSSV
KSSV 2021년 7월 15일
idx = nchoosek(1:6,4)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by