I'm looking for a way to get this loop to work, basically I need to calculate the difference in a 3x1 vector divide by the difference in time. Does anyone have any suggestion?
t = 2000
for ind = 0:1:t
S(n) = (diff(x( don't know how to input the value here )))./diff(t(ind));