Create generateTrialStruct.m