are you sure about having all possible combinations of 5 from 48? There are 1.712.304 possible combinations. You will find them by using the nchoosek function:
result = nchoosek(1:48,5)
This will give you all the combinations of 5 column numbers from 48 without repetations. You can use this result to index the corresponding columns.
Best Answer