Create train.m