Overlap percentage between 2 community matrices


Updated 16 May 2017

View License

> help getMatrixOverlap

Prcntg = GetMatrixOverlap(C1,C2)

Given 2 Community Matrices (each one obtained using getCommunityMatrix.m),
the code returns the percentage of overlap between the two community partitions.
The two matrices are first binarized (due to the fact that communities here are
non-overlapping),then the percentage is calculated.


C1,C2 : Community Matrices, each one <N x N>


Prcntg : Percentage of overlap between the partitions in C1 and C2

Cite As

Ruggero G. Bettinardi (2023). getMatrixOverlap(C1,C2) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes