Create generate.m