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,15 @@
1
+function fillStudyMenu(studymenu,uimodel)
2
+studydir = fullfile(getTbxPath,'study');
3
+    files = dir(studydir);
4
+    for fileidx = 1: numel(files)
5
+        if ~files(fileidx).isdir
6
+%         && ~strcmp(files(fileidx).name,'default.mat')
7
+%             uimenu(studymenu,...
8
+%                 'Label',files(fileidx).name,...
9
+%                 'Callback',{@mcb_load_study,files(fileidx).name,uimodel});
10
+            addStudyToMenu(studymenu,files(fileidx).name,uimodel);
11
+        end
12
+    end
13
+end
14
+
15
+