getCommunityMatrix(​cs)

버전 1.0.0.0 (1.23 KB) 작성자: Ruggero G. Bettinardi
Get Community matrix from affiliation vector 'cs'
다운로드 수: 51
업데이트 날짜: 2017/5/16

라이선스 보기

call:

C = getCommunityMatrix(cs)

Given a community affiliation vector cs (obtained from some modularity or
community-detection code in the Brain Connectivity Toolbox [1], for example),
of size 1-by-N, the code returns a N-by-N matrix where pairs of nodes
belonging to the same community are given the same number. Remember that
the actual number assigned to each community is arbitrary, and that each
node (and also each pair of nodes) can be assigned to only one community,
i.e. the communities are non-overlapping. Diagonal elements are set to 0.

NOTE: in order to visualize the matrix, one may want first to convert the
zeros in NaNs, using C(C==0) = nan, and then pcolor(C)


INPUT

cs : community affiliation vector <1 x N>

OUTPUT

C : Community Matrix <N x N>



References:

[1] Brain Connectivity Toolbox: https://sites.google.com/site/bctnet/

인용 양식

Ruggero G. Bettinardi (2024). getCommunityMatrix(cs) (https://www.mathworks.com/matlabcentral/fileexchange/62985-getcommunitymatrix-cs), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Test and Measurement에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0