Effacer les filtres
Effacer les filtres

i want to get a combination from a table of cell by fonction (combntns), but i dosen't work ,anyone can help me ,thank you

1 vue (au cours des 30 derniers jours)
C={'2222222','33333333','444444444'} i want to get like this:'2222222' '3333333333' '2222222' '4444444444' '3333333' '4444444444'

Réponse acceptée

Guillaume
Guillaume le 6 Oct 2014
Is this what you want ?
C={'2222222','33333333','444444444'};
nchoosek(C, 2)

Plus de réponses (1)

Thorsten
Thorsten le 6 Oct 2014
pairs = nchoosek(1:3,2)';
{C{pairs(:)}

Catégories

En savoir plus sur 2-D and 3-D Plots 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