From 24a8ae147479285c769612bcf58f8d80725cd5ee Mon Sep 17 00:00:00 2001 From: Bo Hu Date: Fri, 24 Mar 2023 12:06:47 +0100 Subject: [PATCH] Fix bug during fixing #15 --- NrModel.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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