Prev: Including a plot in an image and then store it as a file using
Next: remove some elements from array
From: Eric Brewer on 26 Feb 2010 15:09 I am trying to generate seeded random numbers with Simulink to be used with the embedded real-time coder. The "rand" and "randn" blocks require a manual seed number be input into the block. That means that if I place a parameter (say x) as the seed, all the random numbers will be identical. I could also make the seed for each be 'x', then 'x+1', then 'x+2'...etc, but this would be cumbersome for models with many random numbers. I would rather just have a global 'reset' which will select a seed for all the random numbers. Is there a way to do this? Thanks in advance. |