Update A0_generator.m