[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need to simplified a splitting and comparison commands
From: |
Faizal |
Subject: |
Re: Need to simplified a splitting and comparison commands |
Date: |
Wed, 12 Oct 2011 10:20:31 -0700 (PDT) |
First of all thank you for your response and apology for not mention about my
objective.
Basically, I would like to find a common number when I generate 100 or 200
random number (0 to 9). With these numbers I split it to frame (in my
example of 5 numbers). Therefore if 100 random numbers, I should be able to
have 20 frames (in my example I denotes it as D1, D2, ....., D20). With
these frames (D1, D2,....,D20), I would like to make a a comparison between
frames (it something like tree, means have few layers until it reach to the
top comparison) to be able to find common number and it will go on until to
the last layer or last two frame comparison. Each layer comparison I denotes
as E1, E2..., E10 for 1st layer than F1, F2,...,F5 and so on until last
layer.
In my previous post, is just example of 20 random numbers. If it is 100 or
200 numbers, for me to split the number is by inserting the D1 until D2 as
shown (if R is the 100 random numbers)
D1=R(1:1,1:5), D2=R(1:1,6:10), ......................., D20=R(1:1,96:100),
and if I want to make a 1st layer comparison I need to repeat the intersect
command
E1=intersect(D1,D2), E2=intersect(D3,D4), ........, E10=intersect(D19,D20),
than for 2nd layer comparison will be
F1=intersect(E1,E2), ......, F5=intersect(E9,E10),
and so on...
If there is a shortest way to achieve this I really appreciated. If not I
need to repeat the command. If I have 200 or 300 random number, it will be
long repeated command.
I hope I explained clearly what I want to achieve
Thank you again.
--
View this message in context:
http://octave.1599824.n4.nabble.com/Need-to-simplified-a-splitting-and-comparison-commands-tp3896923p3898828.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Need to simplified a splitting and comparison commands, Faizal, 2011/10/12
- Re: Need to simplified a splitting and comparison commands, Francesco Potortì, 2011/10/12
- Re: Need to simplified a splitting and comparison commands, Juan Pablo Carbajal, 2011/10/12
- Re: Need to simplified a splitting and comparison commands,
Faizal <=
- Re: Need to simplified a splitting and comparison commands, Juan Pablo Carbajal, 2011/10/12
- Re: Need to simplified a splitting and comparison commands, Faizal, 2011/10/13
- Re: Need to simplified a splitting and comparison commands, Juan Pablo Carbajal, 2011/10/13
- Re: Need to simplified a splitting and comparison commands, Juan Pablo Carbajal, 2011/10/13
- Re: Need to simplified a splitting and comparison commands, Francesco Potortì, 2011/10/13
- Re: Need to simplified a splitting and comparison commands, Faizal, 2011/10/13