So am I...the above doesn't work at least w/ R2012b...
>> NUMMACHINES=200;
SUPPX=[0,200];
DATADISTROX={'unif',SUPPX(1),SUPPX(2)};
>> r=random(DATADISTROX,SUPPX,NUMMACHINES,1);
Error using random (line 75)
The NAME argument must be a distribution name.
>>
Looks to me that it's an attempt to encapsulate the call
>> r=random('unif',SUPPX(1),SUPPX(2),NUMMACHINES,1);
>> whos r
Name Size Bytes Class Attributes
r 200x1 1600 double
>>
which would create as shown a column vector of 200 PRVs from a uniform distribution between [0 200]. Maybe there's some other version that will accept the cell array???
ADDENDUM
The following does work, however...
>> r=random(DATADISTROX{:},NUMMACHINES,1);
>> whos r
Name Size Bytes Class Attributes
r 200x1 1600 double
>>
NB:
- The original call has the parameter vector SUPPX repeated twice (once in the cell array and again explicitly) which is clearly wrong, and
- The use of "the curlies" to dereference the cell array in the working call wherein the duplicate SUPPX array has been expunged.
Surely this isn't supposed to have actually been working somewhere?