Code covered by the BSD License  

Highlights from
TDMA basd MANET

image thumbnail

TDMA basd MANET

by

 

This file is used to analysis for TDMA based mobile ad-hoc network

[x_loc,y_loc,z_loc]=locate_node(x_lim,y_lim,z_lim)
function [x_loc,y_loc,z_loc]=locate_node(x_lim,y_lim,z_lim)
%% Writter Pankaj Joshi India
%generate location of a node according to maximum avalable x_lim y_lim and
%z_lim, for example in aria of 500 X 500 X 200 required to place 50 nodes
%than 
% for k=1:50
%[x(k),y(k),z(k)]=locate_node(500,500,200)
%end
x_loc=randi(x_lim,1,1);
y_loc=randi(y_lim,1,1);
z_loc=randi(z_lim,1,1);
end

Contact us