Dear Octavers,

I have a matrix A composed of 4 columns C1, C2, C3 and C4.

I would like to have all the matrices (vectors) that can be generated from matrix A without repetitions of columns and where the order of the columns does not matter, i.e. matrix B = [C1 C2] = [C2 C1] . More precisely I would like to obtain the following matrices / vectors: [C1]; [C2]; [C3]; [C4]; [C1 C2]; [C1 C3]; [C1 C4]; [C2 C3]; [C2 C4 ]; [C3 C4]; [C1 C2 C3]; [C1 C2 C4]; [C1 C3 C4]; [C2 C3 C4]; [C1 C2 C3 C4].

Can we have a code that can do this task.

Thanks in advance

George