Pages

Wednesday, August 1, 2018

Consistent Random Number Generation in MATLAB

Consistent Random Number Generation in MATLAB


Problem: MATLAB does not generate consistent random values even after setting the random seed.
Issue: You are calling a function that is not using your random seed. For example you set the random seed for rand function while calling randn function.
Solution: make sure the same function is seeded that you are calling. For example randn(state,).

visit link download

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.