diff --git a/NrModel.m b/NrModel.m index b2c7cf5..f8e6bb3 100644 --- a/NrModel.m +++ b/NrModel.m @@ -1104,11 +1104,8 @@ function saveExperiment(self,filePath) fns(ismember(fns, excludeFieldNames)) = []; for fn = fieldnames(self)' s.(fn{1}) = self.(fn{1}); - end - - for ef = excludeFieldNames - s.(ef) = []; - end + end + s.trialArray = TrialModel.empty; end %BUnwarpJ