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
Show older comments
C={'2222222','33333333','444444444'} i want to get like this:'2222222' '3333333333' '2222222' '4444444444' '3333333' '4444444444'
Accepted Answer
More Answers (1)
Thorsten
on 6 Oct 2014
pairs = nchoosek(1:3,2)';
{C{pairs(:)}
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!