This is the 3rd question about the same problem now:
http://www.mathworks.com/matlabcentral/answers/797-how-do-i-write-a-good-answer-for-matlab-answers
http://www.mathworks.com/matlabcentral/answers/33251-average-driving-velocity
Please avoid distributing the information which is necessary to create an answer over different threads.