Date: May 8, 2013 5:10 AM
Author: Derek Goring
Subject: Re: search struct array

On Wednesday, May 8, 2013 8:58:08 PM UTC+12, amira ali wrote:
> "amira ali" wrote in message <kmd11g$p6l$1@newscl01ah.mathworks.com>...
>

> > hello
>
> > i have struct array and i want to search in this stuct in some motion_pt and return points with all content(size,angle,responce,octave,class_id )
>
> > example :
>
> > keypoints = 1x38 struct array with fields:
>
> > pt
>
> > size
>
> > angle
>
> > response
>
> > octave
>
> > class_id
>
> >
>
> >
>
> >
>
> > motion_pt (want to search about it in struc keypoints)
>
> > 96.2519 94.7565 79.3643 86.6593 84.2014 79.5626
>
> > 54.0309 57.9461 58.3429 42.9641 55.9402 53.8894
>
>
>
> plz anyone help me


You're an impatient cove, aren't you?
Your first post was only 50 min ago.

Do this:
[dum,indx)=min(abs([keypoints.pt]-96.2519));
keypoints(indx)