We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6a0cf1 commit b7910afCopy full SHA for b7910af
DSEvars.m
@@ -167,12 +167,15 @@
167
[ffpathstr,ffname,ffext]=fileparts(V0);
168
if verbose; disp(['-Path to the image is: ' ffpathstr]); end;
169
170
+
171
+ %if you are using MATLAB <2016, please replace 'contains' with 'strfind'
172
if contains(ffname,'.dtseries') || contains(ffext,'.dtseries')
173
if verbose; disp(['--File is CIFTI: ' ffname ffext]); end;
174
V1=ft_read_cifti(V0);
175
V2=V1.dtseries;
176
I0=size(V2,1); T0=size(V2,2);
177
Y=V2; clear V2 V1;
178
179
elseif ~contains(ffname,'.dtseries') || contains(ffname,'.nii')
180
if verbose; disp(['--File is NIFTI: ' ffname ffext]); end;
181
V1 = load_untouch_nii(V0);
0 commit comments