git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
d0eb71f
Branches
Tags
master
SVMCrossVal.git
private
calculateMultiSubjectDecodePerformance.m
single subject -> svm classification -> plotDecodePerformance working!
Christoph Budziszewski
commited
d0eb71f
at 2009-03-06 13:17:25
calculateMultiSubjectDecodePerformance.m
Blame
History
Raw
%% subject loop function decode = calculateMultiSubjectDecodePerformance(header,subjectdata,svmopts) decode = struct; decode.decodePerformance = []; decode.rawTimeCourse = []; for subjectDataID = 1:size(subjectdata) % SubjectID = cell2mat(subjectCell); currentSubject = subjectdata{subjectDataID}; namehelper = strcat('s',currentSubject.name); %Vars can not start with numbers. display(sprintf('calculating cross-validation performance time-shift for Subject %s. Please Wait. ...',currentSubject.name)); display('switching off all warnings'); warning_state = warning('off','all'); display('calculating ...'); decode.(namehelper) = calculateDecodePerformance(header,currentSubject,svmopts); display('... done'); display('restoring warnings'); warning(warning_state); decode.decodePerformance = [decode.decodePerformance decode.(namehelper).decodePerformance]; decode.rawTimeCourse = [decode.rawTimeCourse decode.(namehelper).rawTimeCourse]; assignin('base','decode',decode); end end