f780216026974f7d59ac9c2ea819a96d10bf8af6
Christoph Budziszewski enabled svm classification....

Christoph Budziszewski authored 15 years ago

1) %% subject loop
2) function decode = calculateMultiSubjectDecodePerformance(header,subjectdata,svmopts)
3) 
4) 
5) 
6) decode = struct;
7) decode.decodePerformance = [];
8) decode.rawTimeCourse     = [];
9) 
Christoph Budziszewski working: SingleSubject, Coo...

Christoph Budziszewski authored 15 years ago

10) 
11) disp(sprintf('we have %g subjects. Press ANY-Key to continue.\n Use Retrun if your Keyboard lacks the ANY-Key.',numel(subjectdata)));
12) pause
13) 
14) for subjectDataID = 1:numel(subjectdata)
Christoph Budziszewski enabled svm classification....

Christoph Budziszewski authored 15 years ago

15) %     SubjectID = cell2mat(subjectCell);
16)     currentSubject = subjectdata{subjectDataID};
17) 
18)     namehelper = strcat('s',currentSubject.name); %Vars can not start with numbers.
19) 
20)     display(sprintf('calculating cross-validation performance time-shift for Subject %s. Please Wait. ...',currentSubject.name));
21)     display('switching off all warnings');
22)     warning_state               = warning('off','all');
23)     display('calculating ...');
24)     
Christoph Budziszewski single subject -> svm class...

Christoph Budziszewski authored 15 years ago

25)         decode.(namehelper)         = calculateDecodePerformance(header,currentSubject,svmopts);