你好,
首先确保你映射矩阵相应的通道映射电极。然后看一看这里
//www.tatmou.com/matlabcentral/answers/133395-compute-centroid-of-a-matrix。
你需要什么。