aa0fb379218f6b86818442412779930261a7d51a
Christoph Budziszewski enabled svm classification....

Christoph Budziszewski authored 15 years ago

1) %% subject loop
2) function decode = calculateMultiSubjectDecodePerformance(header,subjectdata,svmopts)
3) 
4) decode = struct;
5) decode.decodePerformance = [];
6) decode.rawTimeCourse     = [];
7) 
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

8) nSubjects = numel(subjectdata);
Christoph Budziszewski added randomize datapoints...

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

10) disp(sprintf('batch processing %g subjects',nSubjects));
Christoph Budziszewski working: SingleSubject, Coo...

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

12) for subjectDataID = 1:nSubjects
Christoph Budziszewski enabled svm classification....

Christoph Budziszewski authored 15 years ago

13) %     SubjectID = cell2mat(subjectCell);
14)     currentSubject = subjectdata{subjectDataID};
15) 
16)     namehelper = strcat('s',currentSubject.name); %Vars can not start with numbers.
17) 
18)     display(sprintf('calculating cross-validation performance time-shift for Subject %s. Please Wait. ...',currentSubject.name));
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

19) %     display('switching off all warnings');
20) %     warning_state               = warning('off','all');
Christoph Budziszewski enabled svm classification....

Christoph Budziszewski authored 15 years ago

21)     display('calculating ...');
22)     
Christoph Budziszewski single subject -> svm class...

Christoph Budziszewski authored 15 years ago

23)         decode.(namehelper)         = calculateDecodePerformance(header,currentSubject,svmopts);
Christoph Budziszewski enabled svm classification....

Christoph Budziszewski authored 15 years ago

24) 
25)     display('... done');
Christoph Budziszewski first plot button. not work...

Christoph Budziszewski authored 15 years ago

26) %     display('restoring warnings');
27) %     warning(warning_state);