Error with RNG - "Insufficient number of outputs"

2 visualizaciones (últimos 30 días)
Emily
Emily el 14 de Jun. de 2016
Comentada: Adam el 14 de Jun. de 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 comentario
Adam
Adam el 14 de Jun. de 2016
What does the following command show?:
which RandStream -all

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by