|
You should get rid of the class (?) because it appears to be using a
very old random number generator syntax ("rand('seed',s)") that causes
MATLAB to use a very outdated random number generator.
On 11/7/2012 1:45 PM, Steven_Lord wrote:
>
>
> "Alessandro " <dehno.admin@gmail.com> wrote in message
> news:k7e8os$j6h$1@newscl01ah.mathworks.com...
>> Hi all,
>> I have a big problem because few days ago it was all working well and
>> now nothing...
>>
>> I cant' use this function in MATLAB, neither from the command line:
>> http://www.mathworks.it/it/help/stats/random.html
>>
>> if I try to do this: random('Uniform',0,1)
>> it returns:
>> "Error using rand
>> Seed must be a double scalar.
>> Error in random.seed (line 39)
>
> This makes me suspect that you have a class on your path named random
> that is shadowing the Statistics Toolbox function. Execute this command
> to test this hypothesis:
>
> which -all random
>
> If the first line is NOT the random.m from Statistics Toolbox, rename or
> delete the random class, remove the directory containing it from the
> MATLAB path, or move it lower on the path than Statistics Toolbox.
>
> *snip*
>
|