Update simulation.m