Back to the main page.
Bug 1647 - random number initialization will (again) change after matlab2012a
Status | CLOSED FIXED |
Reported | 2012-08-13 09:24:00 +0200 |
Modified | 2012-08-23 10:33:50 +0200 |
Product: | FieldTrip |
Component: | qsub |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P3 normal |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | 1444 |
Blocks: | |
See also: |
Robert Oostenveld - 2012-08-13 09:24:35 +0200
Upon execution of qsubcellfun in matlab 2012a I get the warning Warning: The RandStream.setDefaultStream static method will be removed in a future release. Use RandStream.setGlobalStream instead. > In qsubget at 152 In qsubcellfun at 322 In qsubcellfun at 246 See also qsub/private/fexec around line 90. TODO inventorize the random number generator initialization for all different matlab versions
Robert Oostenveld - 2012-08-13 10:41:52 +0200
I have fixed it for matlab2012a, there are now three sections for different versions. roboos@mentat001> svn commit Sending qsub/private/fexec.m Transmitting file data . Committed revision 6351.
Robert Oostenveld - 2012-08-13 10:57:27 +0200
I have tested the following n = 20; qsubcellfun(@rand, repmat({10},1,n), 'timreq', 600, 'memreq', 100e6) on MATLAB version 2009b (7.9) up to and including 2012a and did not get any errors w.r.t. random numbers. On version 2009a (7.8) there was an unrelated problem, see bug # 1648. I did not test any versions prior to 2009.