From: Susan on 15 Mar 2010 23:42 Sorry for that long explanation. I don't think it really helps answer the question, but I'd still like a reply. How can I get the random number block in Simulink to produce a single random number throughout the entire simulation time rather than changing over the simulation time? I'd like to start by getting this to work with just the random number block and the scope.
From: Phil Goddard on 16 Mar 2010 00:09 > How can I get the random number block in Simulink to produce a single random number throughout the entire simulation time rather than changing over the simulation time? The above sentence seems to indicate that as far as the simulation is concerned you want a constant value. It just happens that you want to generate that constant randomly at the start of the simulation. If that's correct then don't use the random number generator block. Use a constant block where the value of the constant is "rand(1)". On intitialization the model will go to MATLAB and ask for a random number. That number will then be used throughout the length of the simulation. Phil.
First
|
Prev
|
Pages: 1 2 Prev: Resample Data to Match X-values Next: Sliding window implementation and exceer variable size |