how to do multihop communication in wsn by using matlab ?
3 ビュー (過去 30 日間)
古いコメントを表示
i want to do multihop communication in matlab. which means, like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145282/image.jpeg)
in this diagram that read color line represent's finding the nearer cluster head by communicating through the neighborhood node. so now i want to find nearer cluster head through the nodes.Display which cluster head is nearer and display other cluster head and display through which node it's finding.
7 件のコメント
Geoff Hayes
2014 年 9 月 6 日
So the algorithm that you need to implement is something like the following
- Starting with the source cluster head, using the Euclidean distance metric (or some other) find the cluster (say m) whose head is closest to the source using all available clusters.
- Within cluster m, find the node that is the closest to the source cluster head. This node will be the node in between the source cluster head and the m cluster head.
- If the destination node is in cluster m, then we are finished and the path is set.
- If the destination node is not in cluster m, then mark the source cluster and cluster m as unavailable.
- From cluster m, find that cluster (say n) from the list of available clusters that is closest to the head of cluster m.
- Find the node in cluster m that is closest to the n cluster head, and use that as the next node in the path.
- Repeat step 1-6, with cluster n as the source cluster node, until complete.
Arul - verify that the above is correct (you will know for sure) and then try to implement it. If you get stuck on a particular part of the code then please ask for clarification and/or help.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Voronoi Diagram についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!