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

2 vues (au cours des 30 derniers jours)
vinjamoori vikas
vinjamoori vikas le 11 Déc 2020
Réponse apportée : KSSV le 15 Juil 2021
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.

Réponses (1)

KSSV
KSSV le 15 Juil 2021
idx = nchoosek(1:6,4)

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by