Skip to content

Commit b7910af

Browse files
committed
addedstfind
1 parent e6a0cf1 commit b7910af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

DSEvars.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,15 @@
167167
[ffpathstr,ffname,ffext]=fileparts(V0);
168168
if verbose; disp(['-Path to the image is: ' ffpathstr]); end;
169169

170+
171+
%if you are using MATLAB <2016, please replace 'contains' with 'strfind'
170172
if contains(ffname,'.dtseries') || contains(ffext,'.dtseries')
171173
if verbose; disp(['--File is CIFTI: ' ffname ffext]); end;
172174
V1=ft_read_cifti(V0);
173175
V2=V1.dtseries;
174176
I0=size(V2,1); T0=size(V2,2);
175177
Y=V2; clear V2 V1;
178+
%if you are using MATLAB <2016, please replace 'contains' with 'strfind'
176179
elseif ~contains(ffname,'.dtseries') || contains(ffname,'.nii')
177180
if verbose; disp(['--File is NIFTI: ' ffname ffext]); end;
178181
V1 = load_untouch_nii(V0);

0 commit comments

Comments
 (0)