MATLAB: How to write a equation script that uses 2 sets of data.

MATLAB

I've been given 2 sets of data, Time and Speed. And I have to work out the acceleration. My teacher told me to use for … end loop to do it?

Best Answer

dvt = diff([v,t]);
a = dvt(:,1)./dvt(:,2);
Related Question