private/scanDirs.m
259bc793
 function model = scanDirs(model)
 disp('scan dir');
 subjectNames = listDirNames(model.baseDir);
 
 set(model.subjectSelector,'String',subjectNames);
 set(model.subjectSelector,'UserData',subjectNames);
 set(model.subjectSelector,'Value',model.selectedSubject);
 
accd38ff
 %subjectNames(model.selectedSubject)
259bc793
 imageMask = imageMaskNames(fullfile(model.baseDir,cell2mat(subjectNames(model.selectedSubject))));
 
 set(model.imageTypeSelection,'String',imageMask);
 set(model.imageTypeSelection,'UserData',imageMask);
 
e70bbf4d
 set(model.txtBaseDir,'String',model.baseDir);
259bc793
 
 end