I have a vector about the time of an experiment. Now, I want a specific piece of information that was inbetween 3600 and 3800 seconds. However, the measuring points and thus the row numbers, do not match the seconds. So for example, 3600 seconds is the 3482 measuring point/row, but this also changes with my samples.
I thought of finding the correct rows that I want the information of by searching for 3600 and 3800 in the vector. However, there is not a point exactly at 3600 and 3800. I therefore added:
Test = find(abs(Time-3600) <1)
However, this also finds the numbers that are for example 3599. Is there a way in which I can find the number above 3600 closest to 3600. So for example 3600.8, while leaving 3599 out?