How to calculate distance of points with a trajectory

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