How can I compute all possible combinations of a matrix?

1 view (last 30 days)
I have a set of 10 samples that have 6 variables each, creating a 6x10 matrix. I am needing to compute all possible combinations of the individual samples (including all variables as they are dependent). I can easily create all possible combinations of a vector 1:10 using the combntns command, but I am then unable to relate this to my data.
Is there a simple solution for creating combinations of a matrix?
Thank you in advance for taking time to help.
  1 Comment
Iain
Iain on 21 May 2013
Do you need to store every combination, or can you use a single combination at a time?

Sign in to comment.

Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!