help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot Find normrnd


From: Sahil
Subject: Re: Cannot Find normrnd
Date: Fri, 6 Jul 2018 13:15:00 -0700 (MST)

Fritz Sonnichsen wrote
> I am trying to work with random numbers drawn from the normal 
> distribution. I thought something like the code below should do this but 
> normrnd cannot be found.  Possibly I am not loading the correct package?
> 
> Thanks
> Fritz
> =============================
> pkg load statistics
> random("normal", 5, 2, [10, 20])
> ....
> error: 'normrnd' undefined near line 155 column 16
> error: called from     random at line 155 column 14

Hi

Apparently, I'm able to get the output after running your commands on the
dev branch. Can you tell which version, OS etc. are you using for Octave? 


> octave:6> pkg load statistics
> octave:7> random("normal",5,2,[10,20])
> ans =
> 
>  Columns 1 through 7:
> 
>     6.04793    5.30986    3.89205    5.16110    4.60771    3.62737   
> 3.24866
>     5.50658    2.51923    8.39957    5.03407    5.24663    9.31128   
> 6.26192
>     3.18043    6.77380    2.92108    3.82747    3.02390    2.72012   
> 6.52314
>     8.74731    6.79731    5.47822    7.24260    7.45019    1.58427   
> 4.12657
>     5.29708    2.61088    3.27891    3.20453    3.17144    6.64855   
> 7.18288
>     7.44349    5.71044    6.43445    3.05593    4.54212    4.02768   
> 6.83648
>     5.88481    5.04915    4.67753    1.52675    2.44657    7.01068   
> 6.32419
>     3.96108    3.68887    3.41194    2.47419    5.07946    7.11425   
> 4.86674
>     2.83584    5.78327    9.66277    4.27293    5.42643    6.33232   
> 8.12210
>     6.01046    2.32982    7.68564    3.18514    5.51194    4.85756   
> 6.26934
> 
> :
> 
> octave:8>





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]