Error with RNG - "Insufficient number of outputs"
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I get errors from RNG, and have been unable to figure out why. The errors appear in all versions of matlab that I have installed (2015a, 2015b, 2016a). Any suggestions would be greatly appreciated.
>> rng('shuffle')
Error using rng (line 140)
Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
% Break point inserted into RNG
>> rng(10000)
133 s = RandStream(gentype,'Seed',seed); % RandStream handles the compatibility names
K>> s = RandStream(gentype,'Seed',seed);
Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
Error in RandStream.algName (line 730)
name = RandStream.BuiltinTypes{i};
Error in RandStream (line 524)
s.Type = RandStream.algName(type(:)');
K>> RandStream(gentype,'Seed',seed);
Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
Error in RandStream.algName (line 730)
name = RandStream.BuiltinTypes{i};
Error in RandStream (line 524)
s.Type = RandStream.algName(type(:)');
K>> gentype
gentype =
mt19937ar
K>> seed
seed =
10000
1 commentaire
Réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!