cform2sparsecell.m
来自「The package includes 3 Matlab-interfaces」· M 代码 · 共 18 行
M
18 行
function sc = cform2SparseCell(pairwiseData,adjCell)% convert the pairwise-data (like pairwise beliefs) written by c_inference% to sparse_cellN = size(adjCell,2);sc = sparse_cell(N,N);for i=1:N neighb_num = length(adjCell{i}); for n=1:neighb_num j = adjCell{i}(n); if i<j data_ij = pairwiseData{i}{n}; sc{i,j} = data_ij; sc{j,i} = data_ij'; end endend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?