From c97f4491c384bec575ee83e23945767fced82810 Mon Sep 17 00:00:00 2001 From: Bogdan Petre Date: Thu, 4 Apr 2024 22:06:22 -0400 Subject: [PATCH] changed strfind to regexp to allow for regular expressions --- CanlabCore/@atlas/select_atlas_subset.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CanlabCore/@atlas/select_atlas_subset.m b/CanlabCore/@atlas/select_atlas_subset.m index 7b3b0ec1..1237aa36 100644 --- a/CanlabCore/@atlas/select_atlas_subset.m +++ b/CanlabCore/@atlas/select_atlas_subset.m @@ -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