aa0fb379218f6b86818442412779930261a7d51a
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

1) function ui_main(varargin)
2) 
3) %  Initialize and hide the GUI as it is being constructed.
4)     frameWidth=450;
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

5)     frameHeight=450;
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

6)     
7)     frame = figure('Visible','off','Position',[0,0,frameWidth,frameHeight]);
Christoph Budziszewski spatial and temporal groupi...

Christoph Budziszewski authored 14 years ago

8)     movegui(frame,'center'); % get this thing visible on smaller displays.
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

9)     set(frame,'Name','SVMCrossVal Decode Performance 4 SPM');
10)     set(frame,'NumberTitle','off');
11)     set(frame,'MenuBar','none');
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

12)     set(frame,'Resize','on');
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

13)     set(frame,'Units','normalized');
Christoph Budziszewski working: SingleSubject, Coo...

Christoph Budziszewski authored 15 years ago

14)     set(frame,'Color','y');
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

15) 
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

16)     task = struct;
Christoph Budziszewski save load working for most...

Christoph Budziszewski authored 15 years ago

17) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

18)     model = struct;
Christoph Budziszewski save load working for most...

Christoph Budziszewski authored 15 years ago

19)     
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

20)     model.txtBaseDir = createLabel(frame,[0 0.97 0.8 0.03],'');
21)     set(model.txtBaseDir,'BackgroundColor','w');
22)     set(model.txtBaseDir,'ForegroundColor','b');
23)     
24)     model.txtStudyID = createLabel(frame,[0.8 0.97 0.2 0.03],'');
25)     set(model.txtStudyID,'BackgroundColor','w');
26)     set(model.txtStudyID,'ForegroundColor','r');    
27) 
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

28)     TASK_HEIGHT = 1-0.13;
29)     
30)     % PREPROCESSING
31)     task.preprocessing   = uipanel(frame,'Title','Preprocessing','Position',[0 0.0 1 TASK_HEIGHT]);
32)     set(task.preprocessing,'BackgroundColor','w');
33)     set(task.preprocessing,'Units','normalized');
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

34)     model = createFirstStepPanel(model,task.preprocessing);
Christoph Budziszewski subject list from filesyste...

Christoph Budziszewski authored 15 years ago

35)     
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

36)     % CLASSIFICATION
37)     task.classification = uipanel(frame,'Title','Classification','Position',[0 0.0 1 TASK_HEIGHT]);
38)     set(task.classification,'BackgroundColor','w');
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

39)     model = createSecondStepPanel(model,task.classification);
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

40)     
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

41)     % PLOT
42)     task.plot = uipanel(frame,'Title','Plot','Position',[0 0.0 1 TASK_HEIGHT]);
43)     set(task.plot,'BackgroundColor','w');
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

44)     model = createVisualStepPanel(model,task.plot);
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

45)     
Christoph Budziszewski almost all "change study" f...

Christoph Budziszewski authored 14 years ago

46)     % TASK SWITCH BUTTONS
Christoph Budziszewski normalization features enabled

Christoph Budziszewski authored 15 years ago

47)     task.taskSwitch = uibuttongroup(frame,'Position',[0 1-0.13 1 0.10]);
48)     % controlls togglebuttons
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

49)         set(task.taskSwitch,'BackgroundColor','w');
50)         set(task.taskSwitch,'Units','normalized');
51)     
Christoph Budziszewski normalization features enabled

Christoph Budziszewski authored 15 years ago

52)         btnSwitchPreprocessing = uicontrol(task.taskSwitch,'Style','pushbutton',...
53)             'String','ImageProcessing',...
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

54)             'Units','normalized','Position',[0.0 0.0 0.33 1]);
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

55)         set(btnSwitchPreprocessing,'Callback',{@cbSwitchTask,'PRE',task}); 
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

56)         set(btnSwitchPreprocessing,'Enable','on');
57) 
Christoph Budziszewski normalization features enabled

Christoph Budziszewski authored 15 years ago

58)         btnSwitchClassify = uicontrol(task.taskSwitch,'Style','pushbutton',...
59)             'String','Decode',...
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

60)             'Units','normalized','Position',[0.33 0.0 0.33 1]);
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

61)         set(btnSwitchClassify,'Callback',{@cbSwitchTask,'CLASSIFY',task}); 
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

62)         set(btnSwitchClassify,'Enable','on');
63) 
Christoph Budziszewski normalization features enabled

Christoph Budziszewski authored 15 years ago

64)         btnSwitchPlot = uicontrol(task.taskSwitch,'Style','pushbutton',...
65)             'String','Plot',...
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

66)             'Units','normalized','Position',[0.66 0.0 0.33 1]);
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

67)         set(btnSwitchPlot,'Callback',{@cbSwitchTask,'PLOT',task}); 
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

68)         set(btnSwitchPlot,'Enable','on');
69) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

70) 
Christoph Budziszewski almost all "change study" f...

Christoph Budziszewski authored 14 years ago

71)     % MENUS
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

72) 
73)     savemenu = uimenu(frame,'Label','Save ...','Enable','on');
74)         uimenu(savemenu,'Label','Save All','Callback',{@mcb_save,model},'Enable','on');
Christoph Budziszewski task-models implementet.

Christoph Budziszewski authored 15 years ago

75)         
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

76)     studySelectMenu = uimenu(frame,'Label','Study ...','Enable','on');
77)         uimenu(studySelectMenu,'Label','*new Study*','Callback',{@mcb_new_study,studySelectMenu,model});
78)         fillStudyMenu(studySelectMenu,model);
79)         
Christoph Budziszewski almost all "change study" f...

Christoph Budziszewski authored 14 years ago

80)     updateMenu = uimenu(frame,'Label','update ...','Enable','on');
81)         uimenu(updateMenu,'Label','rescan subject dir','Callback',{@mcb_update_subjects,model});
82)         uimenu(updateMenu,'Label','rescan images','Callback',{@mcb_update_imagebase,model});
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

83)         
84) %     newStudyMenu = uimenu(frame,'Label','new Study','Enable','on');
Christoph Budziszewski subject list from filesyste...

Christoph Budziszewski authored 15 years ago

85) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

86)     load_study([getPreviousStudyID '.mat'],model);
87)     cbSwitchTask(0,0,'PRE',task);
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

88)     set(frame,'Visible','on');
89) 
Christoph Budziszewski started save/load functiona...

Christoph Budziszewski authored 15 years ago

90) end
Christoph Budziszewski subject list from filesyste...

Christoph Budziszewski authored 15 years ago

91) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

92) %%%%% ui elements
93) function model = createFirstStepPanel(model,parent)
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

94)     norm1Model = {'none','mean','minmax'};
Christoph Budziszewski spatial and temporal groupi...

Christoph Budziszewski authored 14 years ago

95)     roiGroupMethodNames = {'none','mean','max','median'};
96)     roiGroupMethodFunctions = {@(in)in, @(in)nanmean(in),@(in)nanmax(in),@(in)nanmedian(in)};
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

97) 
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

98)     main_grid = cell(2,4);
99)     main_grid{1,1} = [0 0.7 0.4 0.3];
100)     main_grid{1,2} = [0 0.5 0.5 0.2];
101)     main_grid{1,3} = [0 0.1 0.5 0.4];
102)     main_grid{1,4} = [0 0.0 1.0 0.1];
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

103)     
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

104)     main_grid{2,1} = [0.4 0.7 0.6 0.3];
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

105)     main_grid{2,2} = [0.5 0.1 0.5 0.6];
106) %     main_grid{2,3} = [0.5 0.1 0.5 0.4];
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

107)     
108)     %Subjects
Christoph Budziszewski subject list from filesyste...

Christoph Budziszewski authored 15 years ago

109)     pSubject = uipanel(parent,'Units','normalized','Position',cell2mat(main_grid(1,1)));
110)     set(pSubject,'Title','Subjects');
111)     set(pSubject,'BackgroundColor','w');
112)     
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

113) %     subjectNames = listDirNames(getBaseDir(model));
Christoph Budziszewski subject list from filesyste...

Christoph Budziszewski authored 15 years ago

114)     model.subjectSelector = uicontrol(pSubject,'Style','listbox',...
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

115)                     'Min',1, 'Max',3,...
116)                     'Units','normalized',...
Christoph Budziszewski subject list from filesyste...

Christoph Budziszewski authored 15 years ago

117)                     'Position',[0 0 1 1]);
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

118)     set(model.subjectSelector, 'FontName', 'FixedWidth');
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

119)     set(model.subjectSelector,'BackgroundColor','w');
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

120) 
121)   
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

122)     %Classes
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

123)     pClasses = uipanel(parent,'Units','normalized','Position',cell2mat(main_grid(1,2)));
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

124)     set(pClasses,'Title','Class Definitions');
125)     set(pClasses,'BackgroundColor','w');
126)         lClassDef = uicontrol(pClasses,...
127)             'Style','text',...
128)             'String',sprintf('<Label>,\t <[Event, Event, ..]>;'),...
129)             'Units','normalized',...
130)             'Position',[0 0.8 1 0.2]);
131)         set(lClassDef,'BackgroundColor','w');
132)         set(lClassDef,'HorizontalAlignment','left');
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

133) 
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

134)         
135)         model.txtClassDef = uicontrol(pClasses,'Style','edit',...
136)             'Units','normalized',...
137)             'Position',[0 0 1 0.8]);
138)         set(model.txtClassDef,'HorizontalAlignment','left');
139)         set(model.txtClassDef,'Max',20);
140)         set(model.txtClassDef,'Min',0);
141)         set(model.txtClassDef, 'FontName', 'FixedWidth');
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

142)         set(model.txtClassDef, 'BackgroundColor', 'w');
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

143) 
144) 
145)     %Timeline
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

146)     pPSTH        = uipanel(parent,'Title','PSTH Options','Position',cell2mat(main_grid(2,1)));
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

147)     set(pPSTH,'BackgroundColor','w');
148)         
149)         grid_h = 0.16;
150)         grid_w = 0.3;
151)         
Christoph Budziszewski subject list from filesyste...

Christoph Budziszewski authored 15 years ago

152)         tl_grid = cell([3 6]);
153)         tl_grid{2,1} = [0.0 0.83 grid_w grid_h];
154)         tl_grid{2,1} = [0.4 0.83 grid_w grid_h];
155)         tl_grid{3,1} = [0.7 0.83 grid_w grid_h];
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

156)         
Christoph Budziszewski subject list from filesyste...

Christoph Budziszewski authored 15 years ago

157)         tl_grid{1,2} = [0.0 0.66 grid_w grid_h];
158)         tl_grid{2,2} = [0.4 0.66 grid_w grid_h];
159)         tl_grid{3,2} = [0.7 0.66 grid_w grid_h];
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

160) 
Christoph Budziszewski subject list from filesyste...

Christoph Budziszewski authored 15 years ago

161)         tl_grid{1,3} = [0.0 0.5 grid_w grid_h];
162)         tl_grid{2,3} = [0.4 0.5 grid_w grid_h];
163)         tl_grid{3,3} = [0.7 0.5 grid_w grid_h];
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

164)         
Christoph Budziszewski subject list from filesyste...

Christoph Budziszewski authored 15 years ago

165)         tl_grid{1,4} = [0.0 0.33 grid_w grid_h];
166)         tl_grid{2,4} = [0.4 0.33 grid_w grid_h];
167)         tl_grid{3,4} = [0.7 0.33 grid_w grid_h];
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

168) 
Christoph Budziszewski added TR

Christoph Budziszewski authored 15 years ago

169)         tl_grid{1,5} = [0.0 0.16 grid_w grid_h];
170)         tl_grid{2,5} = [0.4 0.16 grid_w grid_h];
171)         tl_grid{3,5} = [0.7 0.16 grid_w grid_h];
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

172)         
Christoph Budziszewski subject list from filesyste...

Christoph Budziszewski authored 15 years ago

173)         tl_grid{1,6} = [0.0 0.0 0.5 grid_h];
174)         tl_grid{2,6} = [0.5 0.0 grid_w grid_h];
175)         tl_grid{3,6} = [0.75 0.0 grid_w grid_h];
176) 
177)         lStart      = createLabel(pPSTH, cell2mat(tl_grid(2,1)) ,'Start [sec]');
178)         lEnd        = createLabel(pPSTH, cell2mat(tl_grid(3,1)) ,'End [sec]');
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

179)         lPSTH       = createLabel(pPSTH, cell2mat(tl_grid(1,2)) ,'PSTH Range');
180)         lBaseline   = createLabel(pPSTH, cell2mat(tl_grid(1,3)) ,'Baseline');
181)         lTRF        = createLabel(pPSTH, cell2mat(tl_grid(1,5)) ,'TR Factor');
182) 
183)         model.txtPSTHStart         = createTextField(pPSTH,cell2mat(tl_grid(2,2)),'');
184)         model.txtPSTHEnd           = createTextField(pPSTH,cell2mat(tl_grid(3,2)),'');
185)         model.txtBaselineStart     = createTextField(pPSTH,cell2mat(tl_grid(2,3)),'');
186)         model.txtBaselineEnd       = createTextField(pPSTH,cell2mat(tl_grid(3,3)),'');
187)         model.txtTrFactor          = createTextField(pPSTH,cell2mat(tl_grid(2,5)),'');
188)         model.labelTR              = createTextField(pPSTH,cell2mat(tl_grid(3,5)),'');
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

189)         
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

190)         % OPTIONS
191)         grid_h = 0.16;
192)         grid_wl = 0.4;
193)         grid_wo = 0.6;
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

194)         
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

195)         optGrid = cell([3 6]);
196)         optGrid{1,1} = [0.0 0.83 grid_wl grid_h];
197)         optGrid{2,1} = [0.4 0.83 grid_wo grid_h];
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

198)         
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

199)         optGrid{1,2} = [0.0 0.66 grid_wl grid_h];
200)         optGrid{2,2} = [0.4 0.66 grid_wo grid_h];
201) 
202)         optGrid{1,3} = [0.0 0.5 grid_wl grid_h];
203)         optGrid{2,3} = [0.4 0.5 grid_wo grid_h];
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

204)         
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

205)         optGrid{1,4} = [0.0 0.33 grid_wl grid_h];
206)         optGrid{2,4} = [0.4 0.33 grid_wo grid_h];
207) 
208)         optGrid{1,5} = [0.0 0.16 grid_wl grid_h];
209)         optGrid{2,5} = [0.4 0.16 grid_wo grid_h];
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

210)         
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

211)         optGrid{1,6} = [0.0 0.0 grid_wl grid_h];
212)         optGrid{2,6} = [0.4 0.0 grid_wo grid_h];
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

213) 
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

214)         % Options:Imagebase
215)         pOptions = uipanel(parent,'Title','Options','Position',cell2mat(main_grid(2,2)));
216)         set(pOptions,'BackgroundColor','w');
217) 
218)         createLabel(pOptions,cell2mat(optGrid(1,1)),'Image Base');
219)         model.imageTypeSelection = uicontrol(pOptions,'Style','popupmenu',...
220)         'Units','normalized',...
221)         'Position',cell2mat(optGrid(2,1)));
222)         set(model.imageTypeSelection,'BackgroundColor','w');
223)         
224)         %Options:normalizations
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

225)         
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

226)         createLabel(pOptions,cell2mat(optGrid(1,2)),'psth norm4SVM');
227)         model.selNormPST = uicontrol(pOptions,'Style','popupmenu',...
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

228)             'Units','normalized',...
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

229)             'Position',cell2mat(optGrid(2,2)),...
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

230)             'String',norm1Model,...
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

231)             'UserData',norm1Model);
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

232)          set(model.selNormPST,'BackgroundColor','w');   
233)         
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

234)         model.chkColBias = uicontrol(pOptions,'Style','checkbox',...
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

235)             'Units','normalized',...
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

236)             'Position',cell2mat(optGrid(2,3)),...
Christoph Budziszewski normalization features enabled

Christoph Budziszewski authored 15 years ago

237)             'String','column Bias removal',...
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

238)             'Enable','on');
Christoph Budziszewski normalization features enabled

Christoph Budziszewski authored 15 years ago

239)          set(model.chkColBias,'BackgroundColor','w');   
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

240)          
241)          %Options:spatialGrouping
242) 
243)          createLabel(pOptions,cell2mat(optGrid(1,4)),'ROI Grouping');
244)          model.selRoiGrouping = uicontrol(pOptions,'Style','popupmenu',...
245)                 'Units','normalized',...
246)                 'Position',cell2mat(optGrid(2,4)),...
Christoph Budziszewski spatial and temporal groupi...

Christoph Budziszewski authored 14 years ago

247)                 'String',roiGroupMethodNames,...
248)                 'UserData',roiGroupMethodFunctions);
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

249)          set(model.selRoiGrouping,'BackgroundColor','w');
250)         
251)         % COORD TABLE
252)         pVoxel = uipanel(parent,'Title','ROI','Position',cell2mat(main_grid(1,3)));
253)         set(pVoxel,'BackgroundColor','w');
254)         lVoxelDef = createLabel(pVoxel, [0 0.9 1 0.1],'<ROI Name> [+ radius (mm)];');
255)         model.txtVoxelDef = createTextField(pVoxel,[0 0 1 0.9],'');
256)         set(model.txtVoxelDef,'HorizontalAlignment','left');
257)         set(model.txtVoxelDef,'Max',20);
258)         set(model.txtVoxelDef,'Min',0);
259)         set(model.txtVoxelDef, 'FontName', 'FixedWidth');
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

260)         
261)         %buttons
262)         pButtons = uipanel(parent,'Position',cell2mat(main_grid(1,4)));
263)         set(pButtons,'BackgroundColor','w');
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

264)         
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

265)         btnRunButton1 = uicontrol(pButtons,'String','run coord-Table',...
266)             'Units','normalized','Position',[0 0 0.33 1]);
Christoph Budziszewski save load working for most...

Christoph Budziszewski authored 15 years ago

267)         set(btnRunButton1,'Callback',{@cbRunPreprocessing,model,'COORD'}); % set here, because of model.    
268)         set(btnRunButton1,'Enable','on');
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

269)         
Christoph Budziszewski error tracking: added psth-...

Christoph Budziszewski authored 14 years ago

270)         btnRunButton2 = uicontrol(pButtons,'String',sprintf('load ROI for FBS'),...
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

271)             'Units','normalized','Position',[0.33 0 0.33 1]);
Christoph Budziszewski save load working for most...

Christoph Budziszewski authored 15 years ago

272)         set(btnRunButton2,'Callback',{@cbRunPreprocessing,model,'FBS'}); % set here, because of model.  
Christoph Budziszewski snapshot, working on fbs

Christoph Budziszewski authored 15 years ago

273)         set(btnRunButton2,'Enable','on');
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

274)         
Christoph Budziszewski gui finished. callbacks sti...

Christoph Budziszewski authored 15 years ago

275)         btnRunButton3 = uicontrol(pButtons,'String','run ROI-Image processing',...
276)             'Units','normalized','Position',[0.66 0 0.33 1]);
Christoph Budziszewski started save/load functiona...

Christoph Budziszewski authored 15 years ago

277)         set(btnRunButton3,'Callback',{@cbRunPreprocessing,model,'ROI'}); % set here, because of model.    
278)         set(btnRunButton3,'Enable','on');
279) end
280) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

281) function model = createSecondStepPanel(model,parent)
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

282) basecolor = 'w';
283) 
Christoph Budziszewski spatial and temporal groupi...

Christoph Budziszewski authored 14 years ago

284) TimeframeGroupingStrings = {'none','mean'};%,'sum,'max','median'};
285) TimeframeGroupingFunctions = {@(in)in,@(in)nanmean(in,2)};%,'sum',','max','median'};
286) 
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

287) pTime = uipanel(parent,'Units','normalized','Position',[0.0 0.7 1 0.3]);
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

288)     set(pTime,'Title','Decode Timeframe Options');
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

289)     set(pTime,'BackgroundColor',basecolor);
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

290)     grid_h = 0.25;
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

291)     grid_w = 0.3;
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

292)     time_grid = cell([3 4]);
293)     time_grid{1,1} = [0.0 0.75 grid_w grid_h];
294)     time_grid{2,1} = [0.4 0.75 grid_w grid_h];
295)     time_grid{3,1} = [0.7 0.75 grid_w grid_h];
296)     time_grid{1,2} = [0.0 0.50 grid_w grid_h];
297)     time_grid{2,2} = [0.4 0.50 grid_w grid_h];
298)     time_grid{3,2} = [0.7 0.50 grid_w grid_h];
299)     time_grid{1,3} = [0.0 0.25 grid_w grid_h];
300)     time_grid{2,3} = [0.4 0.25 grid_w grid_h];
301)     time_grid{3,3} = [0.7 0.0 grid_w grid_h];
302)     time_grid{1,4} = [0.0 0.0 grid_w grid_h];
303)     time_grid{2,4} = [0.4 0.0 grid_w grid_h];
304)     time_grid{3,4} = [0.7 0.0 grid_w grid_h];
305)     
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

306)     lStart      = createLabel(pTime, cell2mat(time_grid(2,1)) ,'Start [sec]');
307)     lEnd        = createLabel(pTime, cell2mat(time_grid(3,1)) ,'End [sec]');
308)     lFrameShift = createLabel(pTime, cell2mat(time_grid(1,2)),'Frame Shift');
309)     lFramsSize  = createLabel(pTime, cell2mat(time_grid(1,3)),'Frame Size');
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

310)     lFramegroup = createLabel(pTime, cell2mat(time_grid(1,4)),'Timeframe Grouping');
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

311)     
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

312)     model.txtFrameShiftStart   = createTextField(pTime,cell2mat(time_grid(2,2)),'');
313)     model.txtFrameShiftEnd     = createTextField(pTime,cell2mat(time_grid(3,2)),'');
314)     model.txtFrameShiftDur     = createTextField(pTime,cell2mat(time_grid(2,3)),'');
Christoph Budziszewski moved stuff, fixing plotDecode

Christoph Budziszewski authored 15 years ago

315)     
Christoph Budziszewski spatial and temporal groupi...

Christoph Budziszewski authored 14 years ago

316) 
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

317)     
318)     model.selTimeframeGrouping = uicontrol(pTime,'Style','popupmenu',...
319)         'Units','normalized',...
320)         'Position',cell2mat(time_grid(2,4)),...
Christoph Budziszewski spatial and temporal groupi...

Christoph Budziszewski authored 14 years ago

321)         'String',TimeframeGroupingStrings,...
322)         'UserData',TimeframeGroupingFunctions);
323)     set(model.selTimeframeGrouping,'Enable','on');
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

324)     
325) pSVM = uipanel(parent,'Units','normalized','Position',[0 0.3 0.5 0.4]);
Christoph Budziszewski moved stuff, fixing plotDecode

Christoph Budziszewski authored 15 years ago

326)     set(pSVM,'Title','SVM Classification');
327)     set(pSVM,'BackgroundColor',basecolor);
328) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

329)     model.txtSVMopts = createTextField(pSVM,[0 0.83 1 0.16],'');
Christoph Budziszewski moved stuff, fixing plotDecode

Christoph Budziszewski authored 15 years ago

330)     set(model.txtSVMopts,'HorizontalAlignment','left');
331)     
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

332)     model.txtSVMnfold = createTextField(pSVM,[0.0 0.66 0.5 0.16],'');
Christoph Budziszewski moved stuff, fixing plotDecode

Christoph Budziszewski authored 15 years ago

333)     createLabel(pSVM,[0.5 0.50 0.5 0.25 ],'-Fold CrossVal');
334)     
Christoph Budziszewski begin SOM implementation

Christoph Budziszewski authored 15 years ago

335)     model.chkSVMrnd = uicontrol(pSVM,'Style','checkbox','Units','normalized','Position',[0.1 0.50 0.9 0.16]);
Christoph Budziszewski added randomize datapoints...

Christoph Budziszewski authored 15 years ago

336)     set(model.chkSVMrnd,'String','Randomize Datapoints');
337)     set(model.chkSVMrnd,'BackgroundColor','w');
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

338) %     set(model.chkSVMrnd,'Value',StudyArgs.svmrnd);
Christoph Budziszewski added randomize datapoints...

Christoph Budziszewski authored 15 years ago

339)     
Christoph Budziszewski begin SOM implementation

Christoph Budziszewski authored 15 years ago

340)     btnRunSVM = uicontrol(pSVM,'String','run batchmode SVM Crossvalidation',...
341)         'Units','normalized',...
342)         'Position',[0 0.25 1 0.25]);
343)     set(btnRunSVM,'Enable','on');
344)     
345)     btnRunXSVM = uicontrol(pSVM,'String','run SVM X-Subject validation',...
346)         'Units','normalized',...
347)         'Position',[0 0.0 1 0.25]);
348)     set(btnRunXSVM,'Enable','on');
Christoph Budziszewski added randomize datapoints...

Christoph Budziszewski authored 15 years ago

349)     
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

350) pSOM = uipanel(parent,'Units','normalized','Position',[0.5 0.3 0.5 0.4]);
Christoph Budziszewski moved stuff, fixing plotDecode

Christoph Budziszewski authored 15 years ago

351)     set(pSOM,'Title','SOM Classification');
352)     set(pSOM,'BackgroundColor',basecolor);
353) 
Christoph Budziszewski refined gui elements

Christoph Budziszewski authored 14 years ago

354)     createLabel(pSOM,[0 0.75 0.3 0.20],'Size:');
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

355)     model.txtSomM = createTextField(pSOM,[0.3 0.75 0.25 0.16],'');
356)     somsizemal = createLabel(pSOM,[0.55 0.75 0.2 0.16],'x');
Christoph Budziszewski refined gui elements

Christoph Budziszewski authored 14 years ago

357)     set(somsizemal,'HorizontalAlignment','center');
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

358)     model.txtSomN = createTextField(pSOM,[0.75 0.75 0.25 0.16],'');
Christoph Budziszewski refined gui elements

Christoph Budziszewski authored 14 years ago

359)     latticeModel = {'rect','hexa'};
360)     model.selSomLattice = uicontrol(pSOM,'Style','popupmenu',...
361)         'Units','normalized',...
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

362)         'Position',[0.0 0.5 0.3 0.16],...
Christoph Budziszewski refined gui elements

Christoph Budziszewski authored 14 years ago

363)         'String',latticeModel,...
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

364)         'UserData',latticeModel);
Christoph Budziszewski refined gui elements

Christoph Budziszewski authored 14 years ago

365)     set(model.selSomLattice,'BackgroundColor','w');
Christoph Budziszewski moved stuff, fixing plotDecode

Christoph Budziszewski authored 15 years ago

366) 
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

367)     model.txtSOMnfold = createTextField(pSOM,[0.5 0.50 0.25 0.16],'');
Christoph Budziszewski refined gui elements

Christoph Budziszewski authored 14 years ago

368) %     set(model.txtSOMnfold,'Enable','off');
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

369)     createLabel(pSOM,[0.75 0.5 0.25 0.16 ],'-Fold CrossVal');
Christoph Budziszewski refined gui elements

Christoph Budziszewski authored 14 years ago

370)        
Christoph Budziszewski moved stuff, fixing plotDecode

Christoph Budziszewski authored 15 years ago

371) 
372)     btnRunSOM = uicontrol(pSOM,'String','run SOM Crossvalidation',...
373)         'Units','normalized',...
Christoph Budziszewski begin SOM implementation

Christoph Budziszewski authored 15 years ago

374)         'Position',[0.0 0.25 1 0.25]);
Christoph Budziszewski SOM Single run

Christoph Budziszewski authored 15 years ago

375)     set(btnRunSOM,'Enable','on');
Christoph Budziszewski moved stuff, fixing plotDecode

Christoph Budziszewski authored 15 years ago

376) 
377)     btnRunXSOM = uicontrol(pSOM,'String','run SOM X-Subject validation',...
378)         'Units','normalized',...
379)         'Position',[0.0 0.0 1 0.25]);
Christoph Budziszewski manual renamings, better FB...

Christoph Budziszewski authored 15 years ago

380)     set(btnRunXSOM,'Enable','on');
Christoph Budziszewski radius frontend enabled, fi...

Christoph Budziszewski authored 15 years ago

381)     
Christoph Budziszewski studychange works. added gu...

Christoph Budziszewski authored 14 years ago

382) pSearchlight = uipanel(parent,'Units','normalized','Position',[0.0 0.0 0.5 0.3]);
Christoph Budziszewski radius frontend enabled, fi...

Christoph Budziszewski authored 15 years ago

383)     set(pSearchlight,'Title','Spatiotemporal FB classification');
384)     set(pSearchlight,'BackgroundColor',basecolor);
385)     
Christoph Budziszewski almost all "change study" f...

Christoph Budziszewski authored 14 years ago

386)     lSearchligh = createLabel(pSearchlight, [0 0.6 0.5 0.3],'Searchlight Radius (mm)');
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

387)     model.txtSearchlightRadius = createTextField(pSearchlight,[0.5 0.6 0.5 0.3],'');
Christoph Budziszewski radius frontend enabled, fi...

Christoph Budziszewski authored 15 years ago

388)     
Christoph Budziszewski refined gui elements

Christoph Budziszewski authored 14 years ago

389)     lFBSTiming = createLabel(pSearchlight, [0 0.3 0.5 0.3],'Optional Timeline ( e.g. ''-5 0 5 10 15'')');
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

390)     model.txtSearchlightTimeline = createTextField(pSearchlight,[0.5 0.3 0.5 0.3],'');
Christoph Budziszewski fbs timeline mod

Christoph Budziszewski authored 14 years ago

391) 
Christoph Budziszewski radius frontend enabled, fi...

Christoph Budziszewski authored 15 years ago

392)     btnRunFBS = uicontrol(pSearchlight,'String','run Spatiotemporal FB classification',...
393)         'Units','normalized',...
394)         'Position',[0.0 0.0 1 0.3]);
Christoph Budziszewski snapshot, working on fbs

Christoph Budziszewski authored 15 years ago

395)     set(btnRunFBS,'Enable','on');
Christoph Budziszewski radius frontend enabled, fi...

Christoph Budziszewski authored 15 years ago

396)     
Christoph Budziszewski begin SOM implementation

Christoph Budziszewski authored 15 years ago

397) 
398) % button callbacks set here, because of model.
399)     set(btnRunSVM, 'Callback',{@cbRunDecode,model,'SVM'}); 
400)     set(btnRunXSVM,'Callback',{@cbRunDecode,model,'XSVM'}); 
401)     set(btnRunSOM, 'Callback',{@cbRunDecode,model,'SOM'});
Christoph Budziszewski radius frontend enabled, fi...

Christoph Budziszewski authored 15 years ago

402)     set(btnRunXSOM,'Callback',{@cbRunDecode,model,'XSOM'});
Christoph Budziszewski extracted psth-plot to extr...

Christoph Budziszewski authored 15 years ago

403)     set(btnRunFBS, 'Callback',{@cbRunDecode,model,'FBS'});
Christoph Budziszewski moved stuff, fixing plotDecode

Christoph Budziszewski authored 15 years ago

404) end
405) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

406) function model = createVisualStepPanel(model,parent)
Christoph Budziszewski extracted psth-plot to extr...

Christoph Budziszewski authored 15 years ago

407) 
408)     grid_h = 0.25;
409)     grid_w = 0.5;
410)     plot_grid = cell([3 3]);
411)     plot_grid{1,1} = [0.0 0.63 grid_w grid_h];
412)     plot_grid{1,2} = [0.0 0.33 grid_w grid_h];
413)     plot_grid{1,3} = [0.0 0.03 grid_w grid_h];
Christoph Budziszewski refined gui elements

Christoph Budziszewski authored 14 years ago

414)     plot_grid{2,1} = [0.25 0.63 grid_w grid_h];
415)     plot_grid{2,2} = [0.25 0.33 grid_w grid_h];
416)     plot_grid{2,3} = [0.25 0.03 grid_w grid_h];
Christoph Budziszewski extracted psth-plot to extr...

Christoph Budziszewski authored 15 years ago

417) 
Christoph Budziszewski all enabled features workin...

Christoph Budziszewski authored 15 years ago

418)     pButtonPane = uipanel(parent,'Units','normalized','Position',[0 0.5 1 0.5]);
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

419) %     set(pButtonPane,'Title','Plot');
420)     set(pButtonPane,'BackgroundColor','w');
Christoph Budziszewski refined gui elements

Christoph Budziszewski authored 14 years ago

421)     
422)     btnPlot03 = uicontrol(pButtonPane,'String','plot PSTH',...
423)         'Units','normalized',...
424)         'Position',cell2mat(plot_grid(2,1)));
425)     set(btnPlot03,'Callback',{@cbPlot,model,'psth'}); 
426)     set(btnPlot03,'Enable','on');
427)   
Christoph Budziszewski all enabled features workin...

Christoph Budziszewski authored 15 years ago

428)     btnPlot01 = uicontrol(pButtonPane,'String','plot performance and SE',...
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

429)         'Units','normalized',...
Christoph Budziszewski refined gui elements

Christoph Budziszewski authored 14 years ago

430)         'Position',cell2mat(plot_grid(2,2)));
Christoph Budziszewski all enabled features workin...

Christoph Budziszewski authored 15 years ago

431)     set(btnPlot01,'Callback',{@cbPlot,model,'simple'});
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

432)     set(btnPlot01,'Enable','on');
Christoph Budziszewski all enabled features workin...

Christoph Budziszewski authored 15 years ago

433)     
434)     btnPlot02 = uicontrol(pButtonPane,'String','plot subject performance and mean with SE',...
435)         'Units','normalized',...
Christoph Budziszewski extracted psth-plot to extr...

Christoph Budziszewski authored 15 years ago

436)         'Position',cell2mat(plot_grid(2,3)));
Christoph Budziszewski all enabled features workin...

Christoph Budziszewski authored 15 years ago

437)     set(btnPlot02,'Callback',{@cbPlot,model,'x-subject-val'});
438)     set(btnPlot02,'Enable','on');
439) 
440)     
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

441) end
442) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

443) %%%%% ui callbacks
Christoph Budziszewski moved stuff, fixing plotDecode

Christoph Budziszewski authored 15 years ago

444) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

445) function cbSwitchTask(src,evnt,task,taskpanel)
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

446) set(taskpanel.preprocessing,'Visible','off');
447) set(taskpanel.classification,'Visible','off');
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

448) set(taskpanel.plot,'Visible','off');
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

449) switch task
450)     case 'PRE'
451)         set(taskpanel.preprocessing,'Visible','on');
Christoph Budziszewski fbs timeline mod, model in...

Christoph Budziszewski authored 14 years ago

452) 
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

453)     case 'CLASSIFY'
454)         set(taskpanel.classification,'Visible','on');
Christoph Budziszewski fbs timeline mod, model in...

Christoph Budziszewski authored 14 years ago

455) 
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

456)     case 'PLOT'
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

457)         set(taskpanel.plot,'Visible','on');
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

458) end
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

459) % assignin('base','model',model);
Christoph Budziszewski GUI Task Switch: selfmade T...

Christoph Budziszewski authored 15 years ago

460) end
461) 
Christoph Budziszewski started save/load functiona...

Christoph Budziszewski authored 15 years ago

462) function cbRunPreprocessing(src,evnt,model,task)
Christoph Budziszewski enabled svm classification....

Christoph Budziszewski authored 15 years ago

463) main(model,'pre',task);
464) end
465) 
466) function cbRunDecode(src,evnt,model,task)
467) main(model,'decode',task);
Christoph Budziszewski started save/load functiona...

Christoph Budziszewski authored 15 years ago

468) end
469) 
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

470) function cbPlot(src,evnt,model,type)
471) main(model,'plot',type);
472) end
473) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

474) %%%%%%%%%% menu callbacks
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

475) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

476) function mcb_save(src,evnt,model)
477) studyID = get(model.txtStudyID,'String');
478) saveStudy(studyID,model);
Christoph Budziszewski moved stuff, fixing plotDecode

Christoph Budziszewski authored 15 years ago

479) end
480) 
Christoph Budziszewski almost all "change study" f...

Christoph Budziszewski authored 14 years ago

481) function mcb_update_subjects(src,evnt,model)
482) studyID = get(model.txtStudyID,'String');
483) baseDir = getBaseDir(model);
484) subjectNames = listDirNames(baseDir);
485) 
486) set(model.subjectSelector,'String',subjectNames);
487) set(model.subjectSelector,'UserData',subjectNames);
488) set(model.subjectSelector,'Value',1);
489) 
490) saveStudy(studyID,model);
491) end
492) 
493) function mcb_update_imagebase(src,evnt,model)
494) studyID = get(model.txtStudyID,'String');
495) 
496) subjectNames = getSubjectCellList(model);
497) imageDir = fullfile(getBaseDir(model),cell2mat(subjectNames(1)));
498) imageMask = imageMaskNames(imageDir);
499) 
500) set(model.imageTypeSelection,'String',imageMask);
501) set(model.imageTypeSelection,'UserData',imageMask);
502) set(model.imageTypeSelection,'Value',1);
503) 
504) saveStudy(studyID,model);
505) end
506) 
507) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

508) function mcb_new_study(src,evnt,studymenu,uimodel)
Christoph Budziszewski almost all "change study" f...

Christoph Budziszewski authored 14 years ago

509) studyID = get(uimodel.txtStudyID,'String');
510) saveStudy(studyID,uimodel);
511) 
Christoph Budziszewski first eventually working st...

Christoph Budziszewski authored 14 years ago

512) display('CREATE STUDY');
513)     ui_createStudy(studymenu,uimodel);
Christoph Budziszewski moved stuff, fixing plotDecode

Christoph Budziszewski authored 15 years ago

514) end
515) 
516) 
517) 
Christoph Budziszewski new GUI. Only Layout. Backe...

Christoph Budziszewski authored 15 years ago

518)