diff --git a/callAll.m b/callAll.m index c36e4cd..b43c83c 100644 --- a/callAll.m +++ b/callAll.m @@ -20,8 +20,8 @@ for number=numbers(i,:) %fprintf('%s%i\n',subject,number); readEEGEciton(subject,number,windowEMG,windowEEG,shift,5,7500,pburgOrder,minEEGFreq,maxEEGFreq); - svmEciton(subject,number,false,k,maxExpC,maxPerClass); - svmEciton(subject,number,EEG,k,maxExpC,maxPerClass); + svmEciton(subject,number,false,k,maxExpC,maxPerClass,poolObj); + svmEciton(subject,number,EEG,k,maxExpC,maxPerClass,poolObj); end end delete(poolObj) diff --git a/svmEciton.m b/svmEciton.m index 1741128..e9c04b1 100644 --- a/svmEciton.m +++ b/svmEciton.m @@ -1,4 +1,4 @@ -function svmEciton(subject,number,EEG,k,maxExpC,maxPerClass) +function svmEciton(subject,number,EEG,k,maxExpC,maxPerClass,poolObj) load(sprintf('/nfs/wsi/ti/messor/hohlochj/matlabData/%s%i200msWindowEMG1sWindowEEG200msShift1sPauseFreq0to200.mat',subject,number)); addpath('/nfs/wsi/ti/messor/hohlochj/libsvm/matlab'); %k=2; @@ -12,6 +12,8 @@ end clear trainingDataEEG; clear trainingDataEMG; + addAttachedFiles(poolObj,'classification'); + addAttachedFiles(poolObj,'trainingData'); accurancy=zeros(k,3); maxC=zeros(k,1);