How to calculate distance of points with a trajectory

조회 수: 2 (최근 30일)
Kambiz Kousheshy
Kambiz Kousheshy 2016년 6월 18일
댓글: Mouna Elamari 2022년 6월 4일
Hi. I'm stuck on a part of my Wireless sensor network final thesis. I hope someone help me. There is some sensors that randomly distributed in 200*200 meter field. Also a Mobile sink that shows with RED DOT in attached figure. It moves among sensors to harvest their data from their Cluster HEAD. Question: Mobile sink decide to moves from Point A to B , i want all sensors with distance less that 16 meter from mobile sink trajectory changes their type to "RN" , but even i don't know how to code this. is there any function or mathematical solution? Something like attached figure, but it's incorrect.
Blue Points: Rendezvous nodes Circles: Shows Clustering Red Point: Mobile Sink
additional: In attached figure mobile sink moves from Point (x=0,y=100) to Point (x=200,y=100) and all sensors with distance less than 16m with trajectory shows as BLUE Point. (all i want is some code that do this for me)

답변 (1개)

Pravija Raj
Pravija Raj 2018년 11월 16일
Hi,
I'm stuck on a part of my Wireless sensor network final thesis. Do you have the code for the problem you mentioned above. I need to create the same as shown in your figure above( cluster-based).
Can you please share me the code, it will be a great help.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by