matlab test for dead reckoning