Matlab Guruz help plz! - Sajha Mobile
SAJHA MOBILE
Matlab Guruz help plz!
Posts 1 · Viewed 3369 · Go to Last Post
F22
· Snapshot
Like · Likedby · 0
Hello Gurus,



I need to do the following and was wondering if any of you knew an efficient way to do so. 



I have 'n' matrices, each with different row size ('k_n')  but same
number of columns (3).  I need to get a matrix (p) with all possible combination of the rows. 

Just to elaborate, I did the following by brute force;

>> n1
n1 =
     7     0     1
>> n2
n2 =
     2     0     1
     2     0     2
>> n3
n3 =
     3     0     1
     3     0     2
     3     0     3
     3     0     4
p =
     7     0     1     2     0     1     3     0     1
     7     0     1     2     0     1     3     0     2
     7     0     1     2     0     1     3     0     3
     7     0     1     2     0     1     3     0     4
     7     0     1     2     0     2     3     0     1
     7     0     1     2     0     2     3     0     2
     7     0     1     2     0     2     3     0     3
     7     0     1     2     0     2     3     0     4

I highly appreciate your help.  Thank you very much.
Please log in to reply to this post

You can also log in using your Facebook
View in Desktop
What people are reading
You might like these other discussions...
· Posts 1 · Viewed 159
· Posts 19 · Viewed 7003 · Likes 2
· Posts 1 · Viewed 199
· Posts 1 · Viewed 210
· Posts 1 · Viewed 284
· Posts 1 · Viewed 289
· Posts 1 · Viewed 353
· Posts 2 · Viewed 518
· Posts 1 · Viewed 375
· Posts 2 · Viewed 748



Travel Partners
Travel House Nepal