update the velocity
ignore matlab files