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 Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by