adjcell2mat.m

来自「The package includes 3 Matlab-interfaces」· M 代码 · 共 9 行

M
9
字号
function adjMat = adjCell2Mat(adjCell)% create a sparse adjacencies matrix from the cell-array of neighbours indicesN = length(adjCell);adjMat = sparse(N,N);for i=1:N    adjMat(i,adjCell{i}) = 1;end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?