I have some 2D cartesian position data (x,y,time) for a moving object, I would love the extract all of the points where the path/trajectory of this object changed in a particular way. For instance, I would like to know everywhere the object made a turn greater than 90 degrees in less than 2 seconds.
I tried extracting the object's instantaneous heading and then looking for places where this heading changes by an angle greater than a certain cutoff, however, this seems to be missing a lot of turns. I was wondering if there was some clever Matlab way to do what I want?
EDIT: I have attached some sample data, this is one file of many which I have to process. The data are arranged X,Y and time. The data are sampled at 10Hz I believe.