MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > generate random numbers based on probability of oc... 

Subject: generate random numbers based on probability of occurence From: NUS Date: 28 Mar, 2012 16:35:13 Message: 1 of 16 
Hi Masters~ 
Subject: generate random numbers based on probability of occurence From: Roger Stafford Date: 28 Mar, 2012 19:20:19 Message: 2 of 16 
"NUS" wrote in message <jkvek1$5b0$1@newscl01ah.mathworks.com>... 
Subject: generate random numbers based on probability of occurence From: NUS Date: 29 Mar, 2012 05:02:11 Message: 3 of 16 
Thank you Roger so much for your reply. 
Subject: generate random numbers based on probability of occurence From: Roger Stafford Date: 29 Mar, 2012 14:57:12 Message: 4 of 16 
"NUS" wrote in message <jl0qcj$ls6$1@newscl01ah.mathworks.com>... 
Subject: generate random numbers based on probability of occurence From: NUS Date: 29 Mar, 2012 16:47:17 Message: 5 of 16 
I am quite new on matlab programming.. but there are other cases with defined direction and wind speed in the program which works fine. with the part to generate random direction and speed, here are some problems i dont know why... 
Subject: generate random numbers based on probability of occurence From: dpb Date: 29 Mar, 2012 17:53:13 Message: 6 of 16 
On 3/29/2012 11:47 AM, NUS wrote: 
Subject: generate random numbers based on probability of occurence From: NUS Date: 29 Mar, 2012 18:45:23 Message: 7 of 16 
. I put 2 to replace n, Now the code is working perfectly. 
Subject: generate random numbers based on probability of occurence From: NUS Date: 29 Mar, 2012 19:12:11 Message: 8 of 16 
it is not working again...i dont know why. 
Subject: generate random numbers based on probability of occurence From: dpb Date: 29 Mar, 2012 20:56:29 Message: 9 of 16 
On 3/29/2012 2:12 PM, NUS wrote: 
Subject: generate random numbers based on probability of occurence From: Roger Stafford Date: 29 Mar, 2012 21:18:15 Message: 10 of 16 
"NUS" wrote in message <jl2c6b$2vp$1@newscl01ah.mathworks.com>... 
Subject: generate random numbers based on probability of occurence From: NUS Date: 30 Mar, 2012 03:03:45 Message: 11 of 16 
Thank you, it is so clearly written. 
Subject: generate random numbers based on probability of occurence From: Roger Stafford Date: 30 Mar, 2012 04:24:12 Message: 12 of 16 
"NUS" wrote in message <jl37qh$634$1@newscl01ah.mathworks.com>... 
Subject: generate random numbers based on probability of occurence From: ImageAnalyst Date: 28 Mar, 2012 17:44:36 Message: 13 of 16 
Try these: 
Subject: generate random numbers based on probability of occurence From: Joshua Date: 3 Mar, 2013 22:25:08 Message: 14 of 16 
hi there, 
Subject: generate random numbers based on probability of occurence From: Bruno Luong Date: 4 Mar, 2013 08:08:08 Message: 15 of 16 
"Joshua " <s0567996@edalumni.net> wrote in message <kh0ik4$n6v$1@newscl01ah.mathworks.com>... 
Subject: generate random numbers based on probability of occurence From: Joshua Date: 4 Mar, 2013 14:36:09 Message: 16 of 16 
hi bruno, thanks very much! 
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.