adding matlab script which simulates movement across observations