[Show all top banners]

F22

More by F22
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 Matlab Guruz help plz!
[VIEWED 1547 TIMES]
SAVE! for ease of future access.
Posted on 10-08-09 10:59 PM     Reply [Subscribe]
Login in to Rate this Post:     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 be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 7 days
Recommended Popular Threads Controvertial Threads
मन भित्र को पत्रै पत्र!
TPS Work Permit/How long your took?
Does the 180 day auto extension apply for TPS?
Travelling to Nepal - TPS AP- PASSPORT
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters