function[obj] = setTrialStart(obj, pattern); obj.trials = [];