diff --git a/usedMcode/callAllPos.m b/usedMcode/callAllPos.m index feb153a..a75d7c9 100644 --- a/usedMcode/callAllPos.m +++ b/usedMcode/callAllPos.m @@ -4,10 +4,10 @@ maxFile=5; threshold=10000; %EMG is classified as movement EMGChannels={'AbdPolLo','Biceps','Triceps','FrontDelt','MidDelt','BackDelt'}; -noSynergies=3; +noSynergies=2; allSubjects=true; %run all subjects and days or only one random day for one random subject -name='ViaToPos'; %suffix for the output, has to be valid name for file (no space, /, ...) +name='Via2Syn'; %suffix for the output, has to be valid name for file (no space, /, ...) windowEMG=0.2; windowEEG=1; shiftEMG=0.05; @@ -39,15 +39,15 @@ if allSubjects - maxRidgeParamIndexEEGpos=zeros([j,3,k]); - maxRidgeParamIndexEMGpos=zeros([j,3,k]); - maxRidgeParamIndexLFpos=zeros([j,3,k]); - correlationEMGpos=zeros([j,3]); %x,y,angle - correlationEEGpos=zeros([j,3]); - correlationLFpos=zeros([j,3]); +% maxRidgeParamIndexEEGpos=zeros([j,3,k]); +% maxRidgeParamIndexEMGpos=zeros([j,3,k]); +% maxRidgeParamIndexLFpos=zeros([j,3,k]); +% correlationEMGpos=zeros([j,3]); %x,y,angle +% correlationEEGpos=zeros([j,3]); +% correlationLFpos=zeros([j,3]); - maxRidgeParamIndexAutoencKin=zeros([j,noSynergies,k]); - correlationAutoencKin=zeros([j,3]); +% maxRidgeParamIndexAutoencKin=zeros([j,noSynergies,k]); +% correlationAutoencKin=zeros([j,3]); correlationViaAutoenc=zeros([j,3]); correlationViaPCA=zeros([j,3]); correlationViaNNMF=zeros([j,3]); @@ -64,7 +64,7 @@ % [correlationEEGpos(j,:),maxRidgeParamIndex(j,:,:)]=ridgeCV(savePath,'EEG','kin',k,ridgeParams,eegOffset); % [correlationLFpos(j,:),maxRidgeParamIndex(j,:,:)]=ridgeCV(savePath,'LF','kin',k,ridgeParams,eegOffset); - [correlationAutoencKin(j,:),maxRidgeParamIndexAutoencKin(j,:,:)]=ridgeCV(savePath,'Autoenc','kin',k,ridgeParams,eegOffset); +% [correlationAutoencKin(j,:),maxRidgeParamIndexAutoencKin(j,:,:)]=ridgeCV(savePath,'Autoenc','kin',k,ridgeParams,eegOffset); [correlationViaAutoenc(j,:),viaCorrelationAutoenc(j,:)]=ridgeCVvia(savePath,'EEG','Autoenc','kin',k,ridgeParams,eegOffset); [correlationViaPCA(j,:),viaCorrelationPCA(j,:)]=ridgeCVvia(savePath,'EEG','PCA','kin',k,ridgeParams,eegOffset); [correlationViaNNMF(j,:),viaCorrelationNNMF(j,:)]=ridgeCVvia(savePath,'EEG','NNMF','kin',k,ridgeParams,eegOffset);