Thanks for the replies. Let me try to be more clear. All is need is a precise coding which would give(display) all the possible subsets of a given set(irresective of number of elements in it). For instance , if i give a set A={1 2 3} then the possible subsets of it are A, empty, {1},{2},{3},{1 2},{1 3} and {2 3}. It is obviously possible for us to develop a coding for this in MATLAB but when the number of elements in this set is going to increase, the coding is going to be lengthy and consumes lots of manpower. Is there any easier(shorthand) coding to overcome this struggle? I am currently trying to use "nchoose" as suggested by Robertas. I am looking forward for similar ideas.