Error with RNG - "Insufficient number of outputs"

2 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by