function BCTassortativity(inputdatapath,inputdatapath)
FolderNamelist=dir(inputdatapath);
[Fm Fn]=size(FolderNamelist);
for FolderNum=1:Fm
FolderName= FolderNamelist(FolderNum,1).name
if FolderName ~= '.'
dataPath=strcat(inputdatapath,'\',FolderName);
readlist=dir(strcat(dataPath,'\*.mat'));
[m n]=size(readlist);
for filenum=1:m
fileName=readlist(filenum,1).name;
matPath=strcat(dataPath,'\',fileName);
A=importdata(matPath);
r = assortativity(A,0);
B(FolderNum-2,filenum)=r;
end
save('D:\aa\mdd.mat','B');
end

end
