Create theta_generator.m