Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[Moved] Matlab Simulation for M users in a circle

Status
Not open for further replies.

rohit543

Newbie level 3
Joined
Jul 28, 2015
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
6
Dear fellows.

I have to make M points in a circle with radius 0.1R\[\leqslant\]d\[\leqslant\] 0.5R.

I have the code for circle but not getting the meaning of 0.1d and 0.5d

I have code for circle as follows.
Code:
% Data
n = 10;
radius = rand;
xc = randn;
yc = randn;
% Engine
theta = rand(1,n)*(2*pi);
r = sqrt(rand(1,n))*radius;
x = xc + r.*cos(theta);
y = yc + r.*sin(theta);
% Check
plot(x,y,'.')
% Bruno
 
Last edited by a moderator:

The code you provided generates "n" random points inside a circle centered in the randomly generated point (xc,yc). The radius of the circle is also random.

It's not clear your question; furthermore your sentence

"I have to make M points in a circle with radius..."

contains not readable characters. Probably the syntax is not correct.
 
Thank you very much for your reply.

Actually, I have to simulate a circular cell with radius R= 200 m, where the transmitter is at one end and the receiver is at another end. Then 20 other transmitters are generated randomly with uniform distribution inside a circle with radius 0.1R <d<0.5R.
Finally, I need to find the distance of each these transmitter generated in the inner circle to the single transmitter located on the outer circle.
Need your help please/
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top