Skip to content
Snippets Groups Projects
Commit 591c3ab7 authored by Christophe Bradley Smith's avatar Christophe Bradley Smith
Browse files

Fixed sublabel addition problem

parent 6129ad2d
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,15 @@ for iTrial = 1:nTrials
if isempty(curROI)
continue
end
% Set Main label
setLabelValue(lss, iTrial, 'Words', curROI, curVal)
% Set sublabel Values
subLabelList = split(strtrim(extract(labelDefinitionsHierarchy(lss), regexpPattern('(?<=Sublabels:).*'))));
for curLabel = subLabelList'
setLabelValue(lss, iTrial, ["Words", string(curLabel)], lss.Labels.Words{1}.Sublabels.(curLabel{1}), 'LabelRowIndex', 1)
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment