Rank: 22821 based on 0 downloads (last 30 days) and 0 file submitted
photo

Alex Rogers

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Alex Rogers View all
Updated File Comments Rating
05 Dec 2008 shuffle_orderby Two functions: shuffles vectors or matrices, orders according to a predefined order. Author: Sara Silva

######### WARNING #############

shuffle.m resets the random number generator using rand('state',sum(100*clock)) each time it is called.

If you call it repeatedly within a short loop it will continually reset the random number generator seed to the same value and return the same shuffle (and also affect every other random number call within your code). If you are trying to average over stochastic effects this could have disastrous affects.

04 Dec 2008 shuffle_orderby Two functions: shuffles vectors or matrices, orders according to a predefined order. Author: Sara Silva

Contact us