How do I find all permutations from a matrix with one value per column in Matlab? -


i'm new matlab (and programming in general) , can't figure out how this. perhaps quite simple, use help. i've got matrix:

25    53    52    25    37 26    54     0    26    38 27    55     0    27     0 28    56     0    28     0  0    59     0     0     0  0    60     0     0     0 

i compute different combinations, in terms of rows 1 value each column, like, 25,53,52,25,37 , 25,54,52,26,38 , 25,54,52,27,0 etc. besides, want discard combinations containing 0 (like 25,53,0,25,37).

take @ function, allcombo([25:28],[53:56 59:60],52,[25:28],[37:38]) should looking for.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -