The data set I am working with has 17 columns and over 10000 rows. Two particular columns are 'time' and 'animal_speed'. I am also using a Threshold of 0.10m/s.
To find all instances when the 'animal_speed' exceeds the Threshold, I use this:
>> [row, col, v] = find(data_set.animal_speed > 0.10);
which gives me all 'animal_speed' row numbers where the values are greater than 0.10.
Plotting the graph with 'time' and 'animal speed' and including the Threshold line (y=0.10) is not a problem.
However, how do I find the time between when the animal speed exceeded the threshold till when the speed dipped below the threshold (all instances when this happened)?