function [rate, maroc, sigma, gama, c, pred, model]=svm_manifold(com,label,list) %get the number of subjects [n,m,v]=size(com); %get the number of components of each individual m=length(list); ncom=zeros(n,v,m); % normalizing for i=1:n if(m==1) tmp=(squeeze(com(i,list,:))); ncom(i,:)=tmp*(tmp'*tmp)^(-1/2); else tmp=(squeeze(com(i,list,:)))'; ncom(i,:,:)=tmp*(tmp'*tmp)^(-1/2); end end %using projection matric to compute the distance dist=zeros(n)+eye(n); for i=1:n-1 for j=i:n if(i