資源簡介
matlab求最大團 以及相應的測試代碼 可以直接運行
代碼片段和文件信息
function?[?nodesmaxnum]?=?MCP(?mapexpectnumindex)
num=size(map1);
maxnum=0;
nodes=[];
for?idx=1:num
???????[yx]=find(map(idx:)==1);
???????if?length(x)<=expectnum
???????????continue;
???????end
???????submap=map(xx);
???????subexpectnum=max(expectnum-11);
???????subindex=index(x);
???????[subnodessubmaxnum]=MCP(submapsubexpectnumsubindex);
???????if?submaxnum+1>maxnum
???????????maxnum=submaxnum+1;
???????????nodes=[index(idx)?subnodes];
???????end
end
if?maxnum==0
????maxnum=1;
????nodes=index(1);
end
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????551??2012-05-14?09:58??MCP.m
?????文件?????????326??2012-05-14?10:02??MCPtest.m
- 上一篇:ARMA模型法功率譜估計
- 下一篇:張正友標定MATLAB
評論
共有 條評論