Changeset 218 for trunk/src/series/aver_stat.m
- Timestamp:
- Mar 9, 2011, 10:50:25 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/aver_stat.m
r190 r218 283 283 end 284 284 285 % Root name of output files (TO GENERALISE FOR TWO INPUT SERIES)285 %% Root name of output files (TO GENERALISE FOR TWO INPUT SERIES) 286 286 subdir_result='aver_stat'; 287 if ~exist(fullfile(RootPath{1},subdir_result),'dir') 288 dircur=pwd; %record current working directory 289 cd(RootPath{1})% goes to the iamge directory 290 [m1,m2,m3]=mkdir(subdir_result); 291 if ~isequal(m2,'') 292 msgbox_uvmat('CONFIRMATION',m2);%error message for directory creation 293 end 294 [xx,msg2] = fileattrib(subdir_result,'+w','g'); %yield writing access (+w) to user group (g) 295 if ~strcmp(msg2,'') 296 msgbox_uvmat('ERROR',['pb of permission for ' subdir_result ': ' msg2])%error message for directory creation 297 cd(curdir) 298 return 299 end 300 cd(dircur) %back to the initial working directory 287 pathdir=fullfile(RootPath{1},subdir_result); 288 while exist(pathdir,'dir') 289 subdir_result=[subdir_result '.0']; 290 pathdir=fullfile(RootPath{1},subdir_result); 291 end 292 [m1,m2,m3]=mkdir(pathdir); 293 if ~isequal(m2,'') 294 msgbox_uvmat('CONFIRMATION',m2);%error message for directory creation 295 end 296 [xx,msg2] = fileattrib(pathdir,'+w','g'); %yield writing access (+w) to user group (g) 297 if ~strcmp(msg2,'') 298 msgbox_uvmat('ERROR',['pb of permission for ' pathdir ': ' msg2])%error message for directory creation 299 return 301 300 end 302 301 filebase_out=filebase{1}; … … 309 308 end 310 309 311 % slice loop310 %% slice loop 312 311 siz=size(num_i1{1}); 313 312 lengthtot=siz(1)*siz(2);
Note: See TracChangeset
for help on using the changeset viewer.