Prev: Convert angles to 3d image
Next: problem with simulink
From: Mike on 6 Apr 2010 04:24 Hi I have try hard but still don't know how to solve this question. Let's say X has some values, specified by datenumber. I'd like to find, or group, those values within some dates, e.g. 14 days or 7 days. For example, datenumber values X (certainly datenumber won't like the following values) X=[3 5 2 20 1 99]; I like to find only 3,5,2,1 if 14 days are selected. How to write this function? many thanks in advance. Mike
From: nico cruz on 6 Apr 2010 04:41 Mike <sulfateion(a)gmail.com> wrote in message <126ecdbc-f3e0-411c-b99a-9aae2d7dc339(a)w17g2000yqj.googlegroups.com>... > Hi > > I have try hard but still don't know how to solve this question. > Let's say X has some values, specified by datenumber. > I'd like to find, or group, those values within some dates, e.g. 14 > days or 7 days. > For example, datenumber values X (certainly datenumber won't like the > following values) > X=[3 5 2 20 1 99]; > I like to find only > 3,5,2,1 if 14 days are selected. > > How to write this function? > many thanks in advance. > > Mike for vector X you just write: F = find(X<=14); X_new = X(F);
From: Mike on 6 Apr 2010 04:45 On Apr 6, 4:24 pm, Mike <sulfate...(a)gmail.com> wrote: > Hi > > I have try hard but still don't know how to solve this question. > Let's say X has some values, specified by datenumber. > I'd like to find, or group, those values within some dates, e.g. 14 > days or 7 days. > For example, datenumber values X (certainly datenumber won't like the > following values) > X=[3 5 2 20 1 99]; > I like to find only > 3,5,2,1 if 14 days are selected. > > How to write this function? > many thanks in advance. > > Mike Sorry, need to specify more clearly. X=[ || || ImageID DateNum || || V V ] First column is image id vector and second column is its corresponding datenumber. I'd like to find image_ids which are scanned within some dates T (argument input of the function), say 7 days. Mike
From: Mike on 6 Apr 2010 04:48 On Apr 6, 4:41 pm, "nico cruz" <m.nicolas.c...(a)mailbox.tu-berlin.de> wrote: > Mike <sulfate...(a)gmail.com> wrote in message <126ecdbc-f3e0-411c-b99a-9aae2d7dc...(a)w17g2000yqj.googlegroups.com>... > > Hi > > > I have try hard but still don't know how to solve this question. > > Let's say X has some values, specified by datenumber. > > I'd like to find, or group, those values within some dates, e.g. 14 > > days or 7 days. > > For example, datenumber values X (certainly datenumber won't like the > > following values) > > X=[3 5 2 20 1 99]; > > I like to find only > > 3,5,2,1 if 14 days are selected. > > > How to write this function? > > many thanks in advance. > > > Mike > > for vector X you just write: > > F = find(X<=14); > X_new = X(F);- Hide quoted text - > > - Show quoted text - No. not number <= 14. sorry I need to say clearer. I'd like to find image_ids which are imaged within some dates, say 14 days. Mike
From: nico cruz on 6 Apr 2010 05:08
Mike <sulfateion(a)gmail.com> wrote in message <1ded3af1-e437-4c96-9d9a-5e0bdd6481f1(a)g30g2000yqc.googlegroups.com>... > On Apr 6, 4:41 pm, "nico cruz" <m.nicolas.c...(a)mailbox.tu-berlin.de> > wrote: > > Mike <sulfate...(a)gmail.com> wrote in message <126ecdbc-f3e0-411c-b99a-9aae2d7dc...(a)w17g2000yqj.googlegroups.com>... > > > Hi > > > > > I have try hard but still don't know how to solve this question. > > > Let's say X has some values, specified by datenumber. > > > I'd like to find, or group, those values within some dates, e.g. 14 > > > days or 7 days. > > > For example, datenumber values X (certainly datenumber won't like the > > > following values) > > > X=[3 5 2 20 1 99]; > > > I like to find only > > > 3,5,2,1 if 14 days are selected. > > > > > How to write this function? > > > many thanks in advance. > > > > > Mike > > > > for vector X you just write: > > > > F = find(X<=14); > > X_new = X(F);- Hide quoted text - > > > > - Show quoted text - > > No. not number <= 14. sorry I need to say clearer. > I'd like to find image_ids which are imaged within some dates, say 14 > days. > > Mike Im sorry, I cant underytand. couldnt you send a clear example please? nico |