| Author |
Message |
ellobazo
Joined: 11 Oct 2009 Posts: 3 Location: barcelona
|
13 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
|
01 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
|
01 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
|
02 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

|
02 Nov 2009 6:29 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
ellobazo
Joined: 11 Oct 2009 Posts: 3 Location: barcelona
|
02 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
|
03 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 |
|
 |