Posts

Showing posts with the label Mobile Trajectories

Spiral trajectory of a mobile beacon

Image
In this post, we will see an another mobile beacon trajectories called Spiral. clc clear all close all %% Deployment of the nodes and anchor nodes N=100;   % Total Number of  Sensors A=10;    % Total Number of Anchors X=100;   % Area length Y=100;   % Area width R=10;     % Transmission radius (m) [s_x,s_y]=create_distribution(N,X,Y); %Static sensors random distribution plot(s_x,s_y,'bo'); % plot the sensor distribution hold on [a_x,a_y]=Spiral(R,s_x,s_y) plot(a_x,a_y,'mo'); % plot the anchor distribution grid on hold on %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Create Distribution Function (Create a new file and paste the below code and saved the file as create_distribution.m) function[s_x,s_y]=create_distribution(N,X,Y)      s_x = rand(1,N)*X;   % Sensor random distribution of X axis      s_y = rand(1,N)*Y;   % Sensor random distribution of Y axis %%%%%%%%%%%%%%%%%%%...

Circle Trajectory of a Mobile Beacon

Image
In this post, we will design the circular trajectory of the mobile beacon. clc clear all close all %% Deployment of the nodes and anchor nodes N=100;   % Total Number of  Sensors A=10;    % Total Number of Anchors X=100;   % Area length Y=100;   % Area width R=10;     % Transmission radius (m) [s_x,s_y]=create_distribution(N,X,Y); %Static sensors random distribution plot(s_x,s_y,'bo'); % plot the sensor distribution hold on [a_x,a_y]=Circle(R,s_x,s_y) %Circular mobile trajectory plot(a_x,a_y,'mo'); % plot the anchor distribution grid on hold on %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Create Distribution Function (Create a new file and paste the below code and saved the file as create_distribution.m) function[s_x,s_y]=create_distribution(N,X,Y)      s_x = rand(1,N)*X;  % Sensor random distribution of X axis      s_y = rand(1,N)*Y;   % Sensor random distribution of ...