electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Simulation of ad hoc network in matlab


Post new topic  Reply to topic    EDAboard.com Forum Index -> Network -> Simulation of ad hoc network in matlab
Author Message
athinap7



Joined: 28 Jun 2009
Posts: 1


Post29 Jun 2009 0:02   

simulation of ad hoc network using matlab


Hi I have the following problem for my msc project.

I have to plot in Matlab a network with 15 nodes distributed randomly. Then i have to calculate the euclidean distance between the nodes and connect with a line the nodes which their distance is less than a threshold (lets say 350 m)

I have written the following code which will calculate the distance and check if it is less than 350m

for k=1:N;
for j=1:15;
if k~=j;
d(k,j)=((nodesX(k)-nodesX(j))^2+(nodesY(k)-nodesY(j))^2)^0.5;
if d<350;
line(nodesX,nodesY);
end;
end;
end;

end;

But i think that the use of the function line is wrong. How can I plot the lines between the nodes where d<350?

help pleaseeeee
Back to top
Google
AdSense
Google Adsense




Post29 Jun 2009 0:02   

Ads




Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Network -> Simulation of ad hoc network in matlab
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
ad hoc network simulation (11)
Simulation of Ad hoc network (3)
Ad Hoc/Wireless Mesh Network Simulation (2)
ad hoc network (13)
Wireless Ad hoc network (6)
Simulation of a power distribution network using matlab (1)
wireless sensor network simulation by using MATLAB ... (3)
Wireless Sensor Network Simulation using Matlab (1)
hoc wirweless sensor network.plz guide me (2)
Differences between the Ad hoc and wireless network (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS