Create bptrain.m