repeating a constant with a +/-10%

Thread Starter

shegmite

Joined Apr 5, 2013
4
Please can anyone help on matlab codes to use to make a variable repeat itself but with a +/- 10% in the variable as it repeats from 1 to say 10 times of a program.
Thanks
 

WBahn

Joined Mar 31, 2012
32,707
You probably want to generate a vector of random numbers (Matlab has several choices for how to control the distribution you get) and then fold those into your repeated value in some appropriate way (adding, multiplying, whatever).
 
Top