ERROR : The class RandStream has no Constant property or Static method named 'setDefaultStream'.
27 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
afef
am 26 Apr. 2017
Beantwortet: Steven Lord
am 26 Apr. 2017
I was trying to run the code of Ant minner but i got error message " The class RandStream has no Constant property or Static method named 'setDefaultStream'." for this part :
seed = sum(100*clock);
RandStream.setDefaultStream(RandStream('mt19937ar','seed',seed));
import java.util.Random;
import java.lang.System;
gen = Random(seed);
How can i fix this please?
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 26 Apr. 2017
We started announcing that you should replace calls to the setDefaultStream method for the RandStream class with calls to setGlobalStream in release R2011a, started warning users in release R2012a, and started having setDefaultStream throw an error in release R2013a.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Point Cloud Processing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!