Multihop-wireless sensor network
이전 댓글 표시
i want to do the Multihop.but i cannot understand how to do.
i find some code of Multihop. but i can not know it is correct? and i connot understand the code
Clust = find(CH);
X = net(2:3,:); X = X';
for i=1:length(Clust)
sx = X(Clust(i+1:end),1);
sy = X(Clust(i+1:end),2);
d = sqrt((sx - X(Clust(i),1)).^2 + (sy - X(Clust(i),2)).^2);
if ~isempty(d)
[~,d] = min(d);
end
답변 (1개)
Srimouli Rukmabhatla
2020년 3월 20일
0 개 추천
Hi,
You can refer the following link
카테고리
도움말 센터 및 File Exchange에서 Embedded Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!