Skip to content

Commit 3786bb0

Browse files
committed
make things less case sensitive
1 parent ca14a77 commit 3786bb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/atlas/extractRoiFromAtlas.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@
2626

2727
[atlasFile, lut] = getAtlasAndLut(atlasName);
2828

29-
if strcmp(atlasName, 'wang')
29+
if strcmpi(atlasName, 'wang')
3030

31-
if strcmp(hemisphere, 'L')
31+
if strcmpi(hemisphere, 'L')
3232
atlasFile = atlasFile(1, :);
3333
else
3434
atlasFile = atlasFile(2, :);
3535
end
3636

3737
roiIdx = strcmp(roiName, lut.ROI);
3838

39-
elseif strcmp(atlasName, 'neuromorphometrics')
39+
elseif strcmpi(atlasName, 'neuromorphometrics')
4040

4141
roiName = regexprep(roiName, '(Left )|(Right )', '');
4242

@@ -49,7 +49,7 @@
4949

5050
roiIdx = strcmp([prefix roiName], lut.ROI);
5151

52-
elseif strcmp(atlasName, 'visfatlas')
52+
elseif strcmpi(atlasName, 'visfatlas')
5353

5454
prefix = '';
5555
if strcmp(hemisphere, 'L')

0 commit comments

Comments
 (0)