Creating adjacency matrix for network analysis
古いコメントを表示
I have a matrix 29*33 like in the table(attached)/picture

. The first column represent number of individual and each row represent who is he/she friend with like for individual 1 he is friend with 2,3,5,6 and so on! In the matrix I have deleted the individual whose data was missing so If you see first column I have deleted row 4,13,14 and 23. Also since they were missing I set the value of 4,13 ,14 and 23 as 0 wherever they were mentioned as a friend by the remaining individuals so if you see friend's of 1(1st row) you see that he is friend with 2, 3 also 4 but its 0 for 4 since it was missing in the 1st column and then 5 and so on!How should i go about coding in matlab to get an adjacency matrix of this given matrix?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Networks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!