Multihop-wireless sensor network

4 次查看(过去 30 天)
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

类别

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