Skip to content

Commit 4668842

Browse files
committed
Merge pull request #8 from dankessler/spm8Batch/physioCorr/runcheck_typofix
Fix typos (related to #7)
2 parents 3ef4006 + fd1ad26 commit 4668842

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

spm8Batch/matlabScripts/UMBatchPhysioCorr.m

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
cd(UMBatchMaster);
5353
cd(UMSubjectDir);
5454
cd(UMSubject);
55-
cd(UMFuncDir);
55+
if (~strcmp(UMFuncDir,''))
56+
cd(UMFuncDir);
57+
end
5658

5759
functionalDIR = pwd;
5860

@@ -142,12 +144,12 @@
142144

143145
%Check to ensure that the same run is not specified twice. More of a safeguard against typos
144146

145-
pRUNFOUND = zeros(nRUNS,1)
147+
pRUNFOUND = zeros(nRUNS,1) ;
146148

147-
for iRun = 1:nRUNS
148-
for jRun = 1:nRUNS
149-
if strcmp(strtrim(physioInfo{iRUN}(1,:),strtrim(physioInfo{jRUN}(1,:))))
150-
pRUNFOUND(iRUN) = pRUNFOUND(iRUN) + 1
149+
for iRUN = 1:nRUNS
150+
for jRUN = 1:nRUNS
151+
if strcmp(strtrim(physioInfo{iRUN}(1,:)),strtrim(physioInfo{jRUN}(1,:)))
152+
pRUNFOUND(iRUN) = pRUNFOUND(iRUN) + 1 ;
151153
end
152154
end
153155
end

0 commit comments

Comments
 (0)