Skip to content

Commit 1a08e82

Browse files
committedFeb 28, 2025·
fix: support for cell array extra fields
1 parent 3ea2745 commit 1a08e82

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎matlab/subj_frdata2table.m

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@
5252
names{i} = extra{i};
5353
end
5454
f = names{i};
55-
extra_vectors.(f) = zeros(n_trial, 1);
55+
if iscell(frdata.pres.(extra{i}))
56+
extra_vectors.(f) = cell(n_trial, 1);
57+
else
58+
extra_vectors.(f) = zeros(n_trial, 1);
59+
end
5660
end
5761
end
5862

0 commit comments

Comments
 (0)
Please sign in to comment.