Matlab code and Simulation code generate plot with timing and tasks
consistent with current frame of reference.