Hi all,
Here is my problem:
I have an array:
data=[15 6;85 54;90 4;56 87;37 15;24 65]
I want to obtain the result that show combinations of rows for the above array, which would be:
15 6 15 6 15 6
85 54 85 54 85 54
90 4 90 4 90 4
56 87 56 87 24 65
37 15 24 65 56 87
24 65 37 15 37 15
And goes on until every row is in all available positions.
I am looking forward to your helps. Thanks a lot!
1 Comment
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/676908-how-to-create-combinations-of-rows-in-an-array#comment_1194109
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/676908-how-to-create-combinations-of-rows-in-an-array#comment_1194109
Sign in to comment.