I have a column with the exact time of each measurement, and a column with a distance between a sensor and a reflective surface. By taking the difference between two consecutive measurements I can have the time between the two and the displacement (negative or positive). How can I calculate the displacement using the derivative function ?
t=t2-t1; %%%%time period
d=h2-h1; %%%%%displacement v=... ? a= ... ?