MATLAB: Velocity from xyz coordinates

coordinatesvelocityxyz

Hi,
I want to find the velocity of a football
I have a array called "Ball" 15001×3 with the XYZ coordinates of the ball. and i have an array "time" 15001×1 with the time steps.
the samplefrequence is 25 Hz.
how should i approach this to find the velocity of the Ball?
thanks

Best Answer

Get the mean of ball i.e from 15001x3 array at each time step...you will get 15001X3 means..i.e a single mean at each time step..and you said there are 15001 time steps.
Use diff and get difference of x,y,z of the mean. Divide this diff (dx,dy,dz) with diff of time i,e dt step. You have your velocity.
Related Question