MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > Random points in a circular zone 

Subject: Random points in a circular zone From: Valentina Date: 23 May, 2012 08:42:06 Message: 1 of 13 
Hi, I want to create a function that give me N random points in a circular zone. 
Subject: Random points in a circular zone From: Peter Bone Date: 23 May, 2012 14:53:06 Message: 2 of 13 
"Valentina" wrote in message <jpi7su$g55$1@newscl01ah.mathworks.com>... 
Subject: Random points in a circular zone From: Peter Bone Date: 23 May, 2012 15:18:07 Message: 3 of 13 
"Valentina" wrote in message <jpi7su$g55$1@newscl01ah.mathworks.com>... 
Subject: Random points in a circular zone From: Bruno Luong Date: 23 May, 2012 15:24:05 Message: 4 of 13 
I though similar question was answered in a previous thread: 
Subject: Random points in a circular zone From: Valentina Date: 23 May, 2012 16:26:05 Message: 5 of 13 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jpivel$ra5$1@newscl01ah.mathworks.com>... 
Subject: Random points in a circular zone From: Bruno Luong Date: 23 May, 2012 16:52:05 Message: 6 of 13 
"Valentina" wrote in message <jpj32t$el4$1@newscl01ah.mathworks.com>... 
Subject: Random points in a circular zone From: Valentina Date: 23 May, 2012 17:17:09 Message: 7 of 13 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jpj4jl$lb3$1@newscl01ah.mathworks.com>... 
Subject: Random points in a circular zone From: Bruno Luong Date: 23 May, 2012 17:39:06 Message: 8 of 13 
I see. 
Subject: Random points in a circular zone From: Alan_Weiss Date: 23 May, 2012 19:12:37 Message: 9 of 13 
On 5/23/2012 1:39 PM, Bruno Luong wrote: 
Subject: Random points in a circular zone From: ImageAnalyst Date: 23 May, 2012 11:54:01 Message: 10 of 13 
FYI: Original thread: http://www.mathworks.com/matlabcentral/newsreader/view_thread/319832#876000 
Subject: Random points in a circular zone From: Roger Stafford Date: 24 May, 2012 07:56:09 Message: 11 of 13 
"Valentina" wrote in message <jpi7su$g55$1@newscl01ah.mathworks.com>... 
Subject: Random points in a circular zone From: Valentina Date: 24 May, 2012 09:36:15 Message: 12 of 13 
> The following will give a statistically uniform distribution areawise in your circular zone without rejection. Let R, a, and b be as defined in your original post. (I have called your t parameter s and your theta parameter t.) 
Subject: Random points in a circular zone From: Bruno Luong Date: 24 May, 2012 10:25:19 Message: 13 of 13 
n = 8000; 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.