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.
Note that this vector has one entry less than the original ones, so you may be interested in creating a new vector of time at the mid point of each time interval
Best Answer