필터 지우기
필터 지우기

Multihop-wireless sensor network

조회 수: 2 (최근 30일)
wing hin lee
wing hin lee 2020년 1월 22일
답변: Srimouli Rukmabhatla 2020년 3월 20일
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
Srimouli Rukmabhatla 2020년 3월 20일

카테고리

Help CenterFile Exchange에서 Networks에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by