electronics forum

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

MATLAB to automatically create a wireless network.


Post new topic  Reply to topic    EDAboard.com Forum Index -> Network -> MATLAB to automatically create a wireless network.
Author Message
ellobazo



Joined: 11 Oct 2009
Posts: 3
Location: barcelona


Post13 Oct 2009 23:54   

MATLAB to automatically create a wireless network.


Hi

I am trying to develop a program using Matlab that automatically designs a wireless network.

I need to program Matlab to insert base Stations in an area and allow me to move it around .

any idea how to insert the base station and move it.?

Thanks
Back to top
Masterpiece



Joined: 19 Feb 2003
Posts: 9
Location: Egypt


Post01 Nov 2009 20:53   

Re: MATLAB to automatically create a wireless network.


ellobazo wrote:
Hi

I am trying to develop a program using Matlab that automatically designs a wireless network.

I need to program Matlab to insert base Stations in an area and allow me to move it around .

any idea how to insert the base station and move it.?

Thanks


Hi ellobazo,

What do you mean by "to move it around"? Do you want something with a graphical user interface?

I'm currently working on a project where I randomly place nodes in a two-dimentions space. It's useful in Wireless Sensor Networks simulations. Let me know if this is useful and I can share it with you (it's a very simple code)
Back to top
ellobazo



Joined: 11 Oct 2009
Posts: 3
Location: barcelona


Post01 Nov 2009 22:01   

Re: MATLAB to automatically create a wireless network.


HI .. I am Using a GUI, my plan is to allow the user to decide how many base stations to be entered by the program, (this can be random locations.).

I am using Inpolygon to try to place the base station( dots, stars, circles anything) within the map but i cant do it. im using an example from MATLAB called 'the travelling sales man'. but i can show a picture but cant place things (base station) on it.

If you could help me solve this problem i will be very happy. Many thanks,
Back to top
Masterpiece



Joined: 19 Feb 2003
Posts: 9
Location: Egypt


Post02 Nov 2009 6:29   

Re: MATLAB to automatically create a wireless network.


Hi ellobazo,

Unfortunately, I don't have much experience with the GUI. I'm programming in my project with Matlab but using no GUI. I'm simulating Wireless Sensor Networks which is different in operations than the Cellular Networks as it uses multi-hop communication with no base stations. Sorry.
Back to top
Google
AdSense
Google Adsense




Post02 Nov 2009 6:29   

Ads




Back to top
ellobazo



Joined: 11 Oct 2009
Posts: 3
Location: barcelona


Post02 Nov 2009 14:23   

Re: MATLAB to automatically create a wireless network.


Masterpiece wrote:
Hi ellobazo,

Unfortunately, I don't have much experience with the GUI. I'm programming in my project with Matlab but using no GUI. I'm simulating Wireless Sensor Networks which is different in operations than the Cellular Networks as it uses multi-hop communication with no base stations. Sorry.


Hi..

could i have a look at your code or examples. so that i can try to modify and make it work with the GUI ?. perhaps after doing so i might get and new idea of how to implement mine. because now that you talk about sensor networks, i also need my program to sense when something is too close to a base station, for example. if there are 2 base stations but there is a third which is not needed and is making contact with the other two, it could be deleted or disable or something.

thanks
Back to top
Masterpiece



Joined: 19 Feb 2003
Posts: 9
Location: Egypt


Post03 Nov 2009 0:57   

Re: MATLAB to automatically create a wireless network.


ellobazo wrote:
Masterpiece wrote:
Hi ellobazo,

Unfortunately, I don't have much experience with the GUI. I'm programming in my project with Matlab but using no GUI. I'm simulating Wireless Sensor Networks which is different in operations than the Cellular Networks as it uses multi-hop communication with no base stations. Sorry.


Hi..

could i have a look at your code or examples. so that i can try to modify and make it work with the GUI ?. perhaps after doing so i might get and new idea of how to implement mine. because now that you talk about sensor networks, i also need my program to sense when something is too close to a base station, for example. if there are 2 base stations but there is a third which is not needed and is making contact with the other two, it could be deleted or disable or something.

thanks


Hi ellobazo,

Wireless Sensor Networks (WSN) is different than the Cellular Networks as I mentioned earlier.

A WSN is composed of a large number of sensor nodes that communicate using a wireless medium (air).
The sensor nodes are deployed randomly in the environment to be monitored.
The sensor nodes distributed in ad hoc structure.
In WSN there is no base station and not all nodes hear each other.
The WSN is a multi-hop network.

Basic part of my code is to randomly place the sensor nodes in the given space then connecting each two nodes if the distance between them less than or equal to the communication radius. Please check Matlab code below.

clear;
noOfNodes = 50;
rand('state', 0);
figure(1);
clf;
hold on;
L = 1000;
R = 200; % maximum range;
netXloc = rand(1,noOfNodes)*L;
netYloc = rand(1,noOfNodes)*L;
for i = 1:noOfNodes
plot(netXloc(i), netYloc(i), '.');
text(netXloc(i), netYloc(i), num2str(i));
for j = 1:noOfNodes
distance = sqrt((netXloc(i) - netXloc(j))^2 + (netYloc(i) - netYloc(j))^2);
if distance <= R
matrix(i, j) = 1; % there is a link;
line([netXloc(i) netXloc(j)], [netYloc(i) netYloc(j)], 'LineStyle', ':');
else
matrix(i, j) = inf;
end;
end;
end;
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 -> MATLAB to automatically create a wireless network.
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Matlab: using Matlab to model a wireless network (4)
How to simulate wireless network by Matlab?? (8)
wireless sensor network simulation by using MATLAB ... (3)
Wireless Sensor Network Simulation using Matlab (1)
Create a network drive (1)
Wireless Sensor networks vs Wireless Ad Hoc Network (3)
I how can create network of uC whit TCP/IP porotocol ??? (2)
how to create an EXE file of matlab? (7)
can we create nodes using matlab (2)
how to create own blocks in MATLAB? (8)


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