Home all possible combinations of a set in Matlab
Reply: 0

all possible combinations of a set in Matlab

user418
1#
user418 Published in May 24, 2018, 3:51 pm

I'm trying to find all possible combinations of a set but the order of the elements are also important for my problem.

For example for the set set={A, B, C}, the possible subsets are subsets={A},{B},{C},{A,B},{A,C},{B,A},{B,C},{C,A},{C,B},{A,B,C},{A,C,B},{B,A,C},{B,C,A},{C,A,B},{C,B,A}.

Are there any Matlab function to find that?

Thanks in advance.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.702398 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO