Browse code

studychange works. added gui elements for spatial and temporal grouping

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

Christoph Budziszewski authored on30/07/2009 20:05:36
Showing1 changed files
... ...
@@ -8,6 +8,7 @@ display(['SAVE ' studyID]);
8 8
 StudyArgs.baseDir             = getBaseDir(model);
9 9
 StudyArgs.subjectSelectString = get(model.subjectSelector,'String');
10 10
 StudyArgs.subjectSelectValue  = get(model.subjectSelector,'Value');
11
+
11 12
 StudyArgs.classdefString      = get(model.txtClassDef,'String');
12 13
 
13 14
 StudyArgs.pststart            = get(model.txtPSTHStart,'String');
... ...
@@ -17,13 +18,14 @@ StudyArgs.baselineend         = get(model.txtBaselineEnd,'String');
17 18
 StudyArgs.trfactor            = get(model.txtTrFactor,'String');
18 19
 StudyArgs.trlabel             = get(model.labelTR,'String');
19 20
 
20
-StudyArgs.imageTypeSelectionString = get(model.imageTypeSelection,'String');
21
-StudyArgs.imageTypeSelectionValue  = get(model.imageTypeSelection,'Value');
21
+StudyArgs.imageTypeSelectionString  = get(model.imageTypeSelection,'String');
22
+StudyArgs.imageTypeSelectionValue   = get(model.imageTypeSelection,'Value');
22 23
 
23 24
 StudyArgs.voxelString         = get(model.txtVoxelDef,'String');
24 25
 
25 26
 StudyArgs.selNormPSTValue     = get(model.selNormPST, 'Value');
26 27
 StudyArgs.chkColBiasValue     = get(model.chkColBias, 'Value');
28
+StudyArgs.roiGroupingValue    = get(model.selRoiGrouping, 'Value');
27 29
 
28 30
 % %%%%%%%%%%%%%%%
29 31
 
... ...
@@ -31,6 +33,8 @@ StudyArgs.frameshiftstart       = get(model.txtFrameShiftStart,'String');
31 33
 StudyArgs.frameshiftend         = get(model.txtFrameShiftEnd,'String');
32 34
 StudyArgs.frameshiftdur         = get(model.txtFrameShiftDur,'String');
33 35
 
36
+StudyArgs.timeframeGroupingValue    = get(model.selTimeframeGrouping,'Value');
37
+
34 38
 StudyArgs.svmoptstring          = get(model.txtSVMopts,'String');
35 39
 StudyArgs.svmnfold              = get(model.txtSVMnfold,'String');
36 40
 StudyArgs.svmrnd                = get(model.chkSVMrnd,'Value');
Browse code

almost all "change study" features implemented. needs testing.

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

Christoph Budziszewski authored on30/07/2009 18:46:52
Showing1 changed files
... ...
@@ -1,4 +1,8 @@
1 1
 function ret = saveStudy(studyID,model)
2
+if strcmp(studyID,'')
3
+    ret = 0;
4
+    return
5
+end
2 6
 display(['SAVE ' studyID]);
3 7
 
4 8
 StudyArgs.baseDir             = getBaseDir(model);
Browse code

first eventually working study switch functionality

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

Christoph Budziszewski authored on29/07/2009 15:51:21
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,46 @@
1
+function ret = saveStudy(studyID,model)
2
+display(['SAVE ' studyID]);
3
+
4
+StudyArgs.baseDir             = getBaseDir(model);
5
+StudyArgs.subjectSelectString = get(model.subjectSelector,'String');
6
+StudyArgs.subjectSelectValue  = get(model.subjectSelector,'Value');
7
+StudyArgs.classdefString      = get(model.txtClassDef,'String');
8
+
9
+StudyArgs.pststart            = get(model.txtPSTHStart,'String');
10
+StudyArgs.pstend              = get(model.txtPSTHEnd,'String');
11
+StudyArgs.baselinestart       = get(model.txtBaselineStart,'String');
12
+StudyArgs.baselineend         = get(model.txtBaselineEnd,'String');
13
+StudyArgs.trfactor            = get(model.txtTrFactor,'String');
14
+StudyArgs.trlabel             = get(model.labelTR,'String');
15
+
16
+StudyArgs.imageTypeSelectionString = get(model.imageTypeSelection,'String');
17
+StudyArgs.imageTypeSelectionValue  = get(model.imageTypeSelection,'Value');
18
+
19
+StudyArgs.voxelString         = get(model.txtVoxelDef,'String');
20
+
21
+StudyArgs.selNormPSTValue     = get(model.selNormPST, 'Value');
22
+StudyArgs.chkColBiasValue     = get(model.chkColBias, 'Value');
23
+
24
+% %%%%%%%%%%%%%%%
25
+
26
+StudyArgs.frameshiftstart       = get(model.txtFrameShiftStart,'String');
27
+StudyArgs.frameshiftend         = get(model.txtFrameShiftEnd,'String');
28
+StudyArgs.frameshiftdur         = get(model.txtFrameShiftDur,'String');
29
+
30
+StudyArgs.svmoptstring          = get(model.txtSVMopts,'String');
31
+StudyArgs.svmnfold              = get(model.txtSVMnfold,'String');
32
+StudyArgs.svmrnd                = get(model.chkSVMrnd,'Value');
33
+
34
+StudyArgs.somM                  = get(model.txtSomM,'String');
35
+StudyArgs.somN                  = get(model.txtSomN,'String');
36
+StudyArgs.latticeModelValue     = get(model.selSomLattice,'Value');
37
+StudyArgs.somnfold              = get(model.txtSOMnfold,'String');
38
+
39
+StudyArgs.searchlightradius     = get(model.txtSearchlightRadius,'String');
40
+StudyArgs.searchlightTimeline   = get(model.txtSearchlightTimeline,'String');
41
+
42
+
43
+file = strcat(studyID,'.mat');
44
+save(fullfile(getStudyPath,file),'-Struct','StudyArgs') ;
45
+ret=1;
46
+end
0 47
\ No newline at end of file