Why are 1 and 4 singled out specifically?
As this sounds like homework, I'm not giving you the code, but you can simply:
- use a for loop to iterate between 0 and the number of column - number of column singled out, call the index k.
- use nchoosek to select all combinations of k elements out of the index of the remaining columns
- use the indices returned by nchoosek plus your singled out columns to extract the column combinations.