FBS: status display
Christoph Budziszewski

Christoph Budziszewski commited on 2009-04-26 00:53:52
Zeige 1 geänderte Dateien mit 8 Einfügungen und 5 Löschungen.


git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@179 83ab2cfd-5345-466c-8aeb-2b2739fb922d
... ...
@@ -89,10 +89,10 @@ for s = 1:nSubjects
89 89
 %         coordNameHelper = strcat('v',num2str(iVoxel));
90 90
         pst{iVoxel} = calculatePST(args.timeline,pstopts,rawdata); % do not store in subjectStruct, so we can clear it later.
91 91
 
92
-         p = iVoxel/nVoxel*100;
93
-         if(mod(iVoxel,floor(nVoxel/100))==0)
94
-             sprintf(' %g%%\t complete',p);
95
-         end
92
+%          p = iVoxel/nVoxel*100;
93
+%          if(mod(iVoxel,floor(nVoxel/100))==0)
94
+%              sprintf(' %g%%\t complete',p);
95
+%          end
96 96
     end
97 97
     elapsed{s}.psth = toc;
98 98
     disp('psth done');
... ...
@@ -167,9 +167,12 @@ for s = 1:nSubjects
167 167
             z = coord(3);
168 168
             
169 169
             img3D(x,y,z) = ((decode/100)-0.5)*2; % range [-1:1]
170
+            
171
+            display(sprintf('Status: %03u / %03u Timepoints, %05u / %05u Coordinates',timeShiftIdx,nSamplePoints,iVoxel,nVoxel));
170 172
         end  %for each voxel
171 173
 
172
-        nii = make_nii(img3D,vdim,mask_image.hdr.hist.originator(1:3),16,sprintf('decode performance, time relative to onset: %g to %g sec',frameStart,frameEnd));
174
+        nii = make_nii(img3D,vdim,mask_image.hdr.hist.originator(1:3),16,...
175
+            sprintf('decode performance, time relative to onset: %g to %g sec',frameStartIdx,frameEndIdx));
173 176
         save_nii(nii,fullfile(savePath,sprintf('%s-%03g',subjects{s}.name,timeShiftIdx)));
174 177
     end %for each timeslice
175 178
     display('rastering done');
176 179