Code: Selecteer alles
% Reset random generator
% Random generator resetting changed in version 7.7
mySeed = 42;
if verLessThan('matlab', '7.7.0')
rand('twister', mySeed);
else
RandStream.setDefaultStream(RandStream('mrg32k3a', 'Seed', mySeed));
end