diff --git a/callAll.m b/callAll.m index 20579eb..c576873 100644 --- a/callAll.m +++ b/callAll.m @@ -1,4 +1,4 @@ - +addpath('/home/hohlochj/masterarbeit') pathToFile='/nfs/wsi/ti/messor/hohlochj/origData/dirs.txt'; %pathToFile='/home/jph/Uni/masterarbeit/Block1_ReachingMovements/dirs.txt'; @@ -8,14 +8,19 @@ pburgOrder=50; minEEGFreq=0; maxEEGFreq=200; +k=10; +maxExpC=0; +maxPerClass=250; +EEG=true; parpool(32); [subjects,numbers]=structForAllDays(pathToFile); for i=1:size(subjects,2) subject=subjects{i}; - for number=numbers(i,:) + parfor number=numbers(i,:) %fprintf('%s%i\n',subject,number); - readEEG(subject,number,windowEMG,windowEEG,shift,5,7500,pburgOrder,minEEGFreq,maxEEGFreq); + 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); end -end \ No newline at end of file +end diff --git a/readEEGEciton.m b/readEEGEciton.m index 151c50f..19aa956 100644 --- a/readEEGEciton.m +++ b/readEEGEciton.m @@ -35,8 +35,8 @@ classification=smoothClassification(smoothClassification~=-1); clear smoothClassification i - save(sprintf('/nfs/wsi/ti/messor/hohlochj/matlabData/%s%i200msWindowEMG1sWindowEEG200msShift1sPauseFreq0to200.mat',subject,number),[trainingDataEEG,trainingDataEMG,classification]); + save(sprintf('/nfs/wsi/ti/messor/hohlochj/matlabData/%s%i200msWindowEMG1sWindowEEG200msShift1sPauseFreq0to200.mat',subject,number),'trainingDataEEG','trainingDataEMG','classification'); fprintf('end read %s%i %s\n',subject,number,datestr(datetime('now'))); -end \ No newline at end of file +end diff --git a/svmEciton.m b/svmEciton.m index 3413caf..d5c70ac 100644 --- a/svmEciton.m +++ b/svmEciton.m @@ -43,5 +43,5 @@ imagesc(cmScaled) colorbar(); saveas(fig,sprintf('/nfs/wsi/ti/messor/hohlochj/plots/%s%i%icm200ms1sPause.fig',subject,number,EEG),'fig'); - save(sprintf('/nfs/wsi/ti/messor/hohlochj/plots/%s%i%i200ms1sPause.fig',subject,number,EEG),[meanAccurancy,maxC,cmScaled]); + save(sprintf('/nfs/wsi/ti/messor/hohlochj/plots/%s%i%i200ms1sPause.fig',subject,number,EEG),'meanAccurancy','maxC','cmScaled'); end