Qlearning_finish matlab working