MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > How to generate vector of random numbers in any in... 

Subject: How to generate vector of random numbers in any interval (e.g. [1 1]) that sums to 1) From: Vassilios Vassiliadis Date: 9 Nov, 2010 12:43:11 Message: 1 of 12 
Hello, 
Subject: How to generate vector of random numbers in any interval (e.g. [1 1]) that sums to 1) From: PLH Date: 9 Nov, 2010 12:56:06 Message: 2 of 12 
Just renormalise: 
Subject: How to generate vector of random numbers in any interval (e.g. [1 1]) that sums to 1) From: Bruno Luong Date: 9 Nov, 2010 12:57:03 Message: 3 of 12 
"Vassilios Vassiliadis" <v.vassiliadis@fme.aegean.gr> wrote in message <ibbfkv$l6m$1@fred.mathworks.com>... 
Subject: How to generate vector of random numbers in any interval (e.g. From: ImageAnalyst Date: 9 Nov, 2010 13:06:27 Message: 4 of 12 
On Nov 9, 7:43 am, "Vassilios Vassiliadis" 
Subject: How to generate vector of random numbers in any interval (e.g. From: PLH Date: 9 Nov, 2010 13:26:05 Message: 5 of 12 
Firstly, my original post misunderstimated the problem (so apologies for that). 
Subject: How to generate vector of random numbers in any interval (e.g. From: Bruno Luong Date: 9 Nov, 2010 13:46:04 Message: 6 of 12 
For N random number in (a,b), of course it is clear the sum target value must be within (N*a,N*b) so that the event is possible. In that case, Roger's FEX. 
Subject: How to generate vector of random numbers in any interval (e.g. From: Walter Roberson Date: 9 Nov, 2010 15:20:14 Message: 7 of 12 
On 09/11/10 6:43 AM, Vassilios Vassiliadis wrote: 
Subject: How to generate vector of random numbers in any interval (e.g. From: Roger Stafford Date: 9 Nov, 2010 17:09:05 Message: 8 of 12 
Walter Roberson <roberson@hushmail.com> wrote in message <PEdCo.12435$lL3.8212@newsfe08.iad>... 
Subject: How to generate vector of random numbers in any interval (e.g. [1 1]) that sums to 1) From: Vassilios Vassiliadis Date: 10 Nov, 2010 09:09:03 Message: 9 of 12 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <ibbgev$emm$1@fred.mathworks.com>... 
Subject: How to generate vector of random numbers in any interval (e.g. From: Vassilios Vassiliadis Date: 10 Nov, 2010 09:15:04 Message: 10 of 12 
Thank you very much for your help... 
Subject: How to generate vector of random numbers in any interval (e.g. From: Vassilios Vassiliadis Date: 10 Nov, 2010 12:11:03 Message: 11 of 12 
Hello, 
Subject: How to generate vector of random numbers in any interval (e.g. From: Bruno Luong Date: 10 Nov, 2010 12:37:04 Message: 12 of 12 
"Vassilios Vassiliadis" <v.vassiliadis@fme.aegean.gr> wrote in message <ibe24n$9cr$1@fred.mathworks.com>... 
No tags are associated with this thread.
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.