The following code is embedded in a function
rsp = find(response_times >= current1 & response_times < current2 & response_times ~= current2);
Here, I am looking for the indices of responses that occur between current1 and current2, where current1 and current2 are times such as 16.22 and 16.32, respectively, and the response times can be equal to current1 but not current2.
For the most part this works as intended, however, every so often it pulls an index of a value equal to current2.
Does anyone know why this might be the case or how I can improve this one line of code to fix it.
Here is an example array this code operates on:
response_times = [ 8.73000000000000
11.4300000000000 13.4800000000000
14.7900000000000 16.3200000000000
18.0400000000000 20.3800000000000
20.9900000000000 21.3400000000000
24.2800000000000 24.6800000000000 ];