Skip to content

Commit

Permalink
changed strfind to regexp to allow for regular expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
bogpetre committed Apr 5, 2024
1 parent 5f3295f commit c97f449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CanlabCore/@atlas/select_atlas_subset.m
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@

% Find which names match
if doexact == false
wh = ~cellfun(@isempty, strfind(obj.(mylabelsfield), strings_to_find{i}));
wh = ~cellfun(@isempty, regexp(obj.(mylabelsfield), strings_to_find{i}));
if strmatch(mylabelsfield, 'label_descriptions')
wh=wh';
end
Expand Down

0 comments on commit c97f449

Please sign in to comment.