Browse code

study change may work

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@134 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on 18/02/2009 18:08:07
Showing 2 changed files
... ...
@@ -12,5 +12,6 @@ imageMask = imageMaskNames(fullfile(model.baseDir,cell2mat(subjectNames(model.se
12 12
 set(model.imageTypeSelection,'String',imageMask);
13 13
 set(model.imageTypeSelection,'UserData',imageMask);
14 14
 
15
+set(model.txtBaseDir,'String',model.baseDir);
15 16
 
16 17
 end
17 18
\ No newline at end of file
... ...
@@ -61,7 +61,7 @@ DEFAULT.wd  = fullfile('d:','Analyze','Choice','24pilot');
61 61
     uimenu(savemenu,'Label','Save','Callback',{@mcb_save,model});
62 62
     uimenu(savemenu,'Label','Load','Callback',{@mcb_load,model});
63 63
 
64
-    cdmenu = uimenu(frame,'Label','change Study');
64
+    cdmenu = uimenu(frame,'Label','change Study','Callback',{@mcb_cd,model});
65 65
     
66 66
     set(frame,'Visible','on');
67 67
 
... ...
@@ -70,15 +70,19 @@ DEFAULT.wd  = fullfile('d:','Analyze','Choice','24pilot');
70 70
     assignin('base','model',model);
71 71
 end
72 72
 
73
+function model = mcb_cd(src,evnt,model)
74
+disp('CD');
75
+directory_name = uigetdir(model.baseDir,'Select Study Base Directory ...');
76
+model.baseDir = directory_name;
77
+model = scanDirs(model);
78
+end
79
+
73 80
 function mcb_save(src,evnt,model)
74 81
 disp('SAVE');
75 82
 baseDir  = model.baseDir;
76 83
 timeLine = getTimeLineParams(model);
77
-subjects = getSubjectCellList(model);
78 84
 classDefString = getClassDefString(model);
79 85
 coordDefString = getCoordDefString(model);
80
-% images
81
-% normalization
82 86
 
83 87
 [file path] = uiputfile('*.mat','Save current Params ...',model.baseDir);
84 88
 save( fullfile(path,file),'baseDir','timeLine','subjects','classDefString','coordDefString') ;
... ...
@@ -92,15 +96,12 @@ assignin('base','l',l);
92 96
 model = setTimeLineParams(model,l.timeLine);
93 97
 model = setClassDefString(model,l.classDefString);
94 98
 model = setCoordDefString(model,l.coordDefString);
95
-end
99
+model.baseDir = l.baseDir;
100
+model = scanDirs(model)
96 101
 
97
-
98
-function model = cbSetBaseDir(model,newDir)
99
-model.baseDir = newDir;
100 102
 end
101 103
 
102 104
 
103
-
104 105
 function model = createSecondStepPanel(model,parent,DEFAULT,basecolor)
105 106
     
106 107
 pSVM = uipanel(parent,'Units','normalized','Position',[0 0.0 0.5 1]);