private/scanDirs.m
259bc793
 function model = scanDirs(model)
9e39a52b
 % disp('scan dir');
 baseDir = getBaseDir(model);
 subjectNames = listDirNames(baseDir);
259bc793
 
 set(model.subjectSelector,'String',subjectNames);
 set(model.subjectSelector,'UserData',subjectNames);
 set(model.subjectSelector,'Value',model.selectedSubject);
 
accd38ff
 %subjectNames(model.selectedSubject)
9e39a52b
 imageMask = imageMaskNames(fullfile(baseDir,cell2mat(subjectNames(model.selectedSubject))));
259bc793
 
 set(model.imageTypeSelection,'String',imageMask);
 set(model.imageTypeSelection,'UserData',imageMask);
 
9e39a52b
 % set(model.txtBaseDir,'String',baseDir);
259bc793
 
f625db4f
 % des = 
 % tr = des.xsDes.Interscan_interval(1:end-3);
 set(model.labelTR,'String',2)
259bc793
 end