Error with RNG - "Insufficient number of outputs"
2 views (last 30 days)
Show older comments
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 Comment
Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!