Prev: Convert angles to 3d image
Next: problem with simulink
From: Rune Allnor on 8 Apr 2010 04:02 On 7 apr, 06:08, Mike <sulfate...(a)gmail.com> wrote: > On Apr 7, 11:55 am, Nathan <ngrec...(a)gmail.com> wrote: > > > > > On Apr 6, 8:48 pm, "us " <u...(a)neurol.unizh.ch> wrote: > > > > Mike > > > > > Sorry i've made mistakes. It should be the second-to and third-to > > > > last. > > > > by now you wasted several lengthy replies - and CSSMers time - for just being sorry for having made yet another mistake... > > > > why don't you THINK for a while, then get your act together, and then come back with a > > > - brief > > > - precise > > > - concise > > > question(?)... > > > > us > > > He did ask for what he wanted, but I have some further questions for > > clarification. > > > " I want to find images > > are within some T dates. Let's say T=7 for second column. > > So the output should be: > > > group1=[ id10 2; > > id2 5; > > id3 3] > > > group2=[ id7 90; > > id20 91;] > > Since the numbers in these two groups are within T. > > Mike" > > > The given numbers are the solution because they fall within a range of > > 7 digits. 2 3 5 is a max range of 5-2 = 3. > > 90 91 is a max range of 91 - 90 = 1. These values are less than 7, so > > they work. > > > None of the numbers are within 7 digits of 66, so that is not included > > in the answer. > Yes. > > > My question for clarification is what if the numbers 1:10 are part of > > the set. > > Is the premise that one number must be within 7 digits of another, or > > is it that a series of numbers must be within 7 digits of each other? > > I'd like to have the series of numbers being within 7 of eacher other. > So if the numbers are 1:10, then the results need to show > 1:7, 2:8, 3:9 and 4:10. These four series of data are all answers. > But the original data are not sorted. State, as carefully and as detailed as you can, what you want. The above is a completely different question than the first you posted. If the fact that your data aren't sorted is what prevents you from finding a solution - why don't you sort the data first? As others already suggested: Think. Rune |