MATLAB: How would find acceleration from two columns of data using this formulae? (I have velocity and time)

homeworktimevelocity

Best Answer

Hint: Given an Mx2 matrix called vt with first column velocity and second column time, look at using the diff( ) function on the individual columns. E.g.,
vdiff = diff(vt(:,1));
tdiff = diff(vt(:,2));
Then ask yourself how you would apply your formula to these difference vectors.
Related Question