Deployment Scenario (Static Sensor-Mobile Anchor)
In this post, we will write a code for Static Sensors and Mobile Anchor deployment scenario. Initially, we will use the simplest mobility model called Random Way-point Mobility Model (RWP). This mobility model generates the random destinations for a mobile anchor. Once, a mobile anchor reached to a destination, it will again moves straight toward the other random destination. This code is the simple one to explain the RWP mobility model. Deployment Scenario (Static Sensors and Mobile Anchor deployment) clc clear all close all %% Deployment of the nodes and anchor nodes N=100; % Total Number of Sensors MA=1; % Total Number of Mobile Anchors X=100; % Area length Y=100; % Area width R=20; % Transmission radius (m) [s_x,s_y, points]=create_distribution(N,X,Y); ma_x=points(:,1); ma_y=points(:,2); plot(s_x,s_y,'bo'); % plot the sensor distribution hold on plot(ma_x,ma_y,'*m:...