Error with RNG - "Insufficient number of outputs"

2 vues (au cours des 30 derniers jours)
Emily
Emily le 14 Juin 2016
Commenté : Adam le 14 Juin 2016
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
Adam
Adam le 14 Juin 2016
What does the following command show?:
which RandStream -all

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by