Hi there,
for R2014a rng(1) can be used to control the generation ff random number for rand function.
However; for R2010a I am not sure how to control the generation of numbers for rand function like rng(1) does.
The reason is I do not want to generate random numbers every time i run the program and get different results.
c = 5rng(1)a = rand(2,c)
it gives same numbers every time in R2014 however; I need to use this in R2010 as I do not have R2014 and I can not use rng.
Any suggestion will be appreciated.
Best Answer