| MATLAB Central > MATLAB Newsreader > how to modifly the random number generator |
|
|
|
Subject: how to modifly the random number generator From: Susan Date: 10 Mar, 2010 19:34:09 Message: 1 of 7 |
|
I have created a simple system which generates 2 random numbers that always add to 1. I did this by using 2 uniform random number generators and an adder which sums the results together. I took the sum and ran it into 2 dividers so that each divider was dividing the original random number by the sum of the 2 random numbers to get 2 random numbers that add to one. I hooked a scope up to the dividers and realized I was not getting a single random number. This random number generator is a subsystem of a bigger system which can only use 1 value. I'm wondering if the random number generator is the wrong block. It seems the only thing I can change is the range of numbers, seed and sample time. |
|
Subject: how to modifly the random number generator From: dpb Date: 10 Mar, 2010 19:45:46 Message: 2 of 7 |
|
Susan wrote: |
|
Subject: how to modifly the random number generator From: Susan Date: 10 Mar, 2010 20:40:20 Message: 3 of 7 |
|
|
|
Subject: how to modifly the random number generator From: John D'Errico Date: 10 Mar, 2010 22:22:05 Message: 4 of 7 |
|
"Susan " <susanreneemueller@gmail.com> wrote in message <hn903k$8l6$1@fred.mathworks.com>... |
|
Subject: how to modifly the random number generator From: Susan Date: 11 Mar, 2010 00:19:04 Message: 5 of 7 |
|
What I'm doing is kind of hard to explain, but I'll try. I have 4 air chambers, 4 solenoid valves, and 4 sensors. I'm modeling each chamber, valve, and sensor as an independent system so a total of 4 subsystems. Each subsystem has a chamber, pressure sensor, and a solenoid valve. Each of the 4 subsystems is modeled as a transfer function. The 4 transfer functions are run in parallel b/c they can be inflated and deflated without affecting each other. |
|
Subject: how to modifly the random number generator From: Susan Date: 16 Mar, 2010 03:42:22 Message: 6 of 7 |
|
Sorry for that long explanation. I don't think it really helps answer the question, but I'd still like a reply. |
|
Subject: how to modifly the random number generator From: Phil Goddard Date: 16 Mar, 2010 04:09:20 Message: 7 of 7 |
|
|
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.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| random number | Susan | 10 Mar, 2010 14:39:05 |
Contact us at files@mathworks.com
