可用于matlab中仿真结果的循环保存,The program could be embed into your code of main program