[scilab-Users] information request about histnorm function

Adrien Vogt-Schilb vogt at centre-cired.fr
Thu Oct 20 14:10:57 CEST 2011


hi

did you try to use histplot instead?

*histplot*(20,x)

(note that 20 is the numbers of classes in 25:25:500)

or

histplot(xclass,x)

On 20/10/2011 12:41, MARIGO RAFFAELLA wrote:
>
> Hi
>
> I'm Raffaella from Italy, please may I have some information about 
> *histnorm* and *normplot* functions:
>
> I need to calculate the log-normal probability distribution so I wrote 
> this command:
>
> y=grand(1,200,'nor',5,0.37); //generate the normal data N(5,0.37)
>
> x=exp(y);                  //generate the log-normal data by using exp
>
> xmin=min(x),xmax=max(x)    //determine min and max values
>
> xmean=mean(x)              //determine mean value
>
> xclass=[25:25:500];
>
> histnorm(x,xclass);    //histogram
>
> normplot(x);               //normal probability plot
>
> but the SCILAB answer is (I highlighted in red the problem):
>
> -->y=grand(1,200,'nor',5,0.37); //generate the normal data N(5,0.37)
>
> -->x=exp(y);                  //generate the log-normal data by using exp
>
> -->xmin=min(x),xmax=max(x)    //determine min and max values
>
>  xmin  =
>
>      43.597751
>
>  xmax  =
>
>      490.5407
>
> -->xmean=mean(x)              //determine mean value
>
>  xmean  =
>
>      152.80157
>
> -->xclass=[25:25:500];
>
> -->*histnorm*(x,xclass);    //histogram
>
> *histnorm*(x,xclass);    //histogram
>
> **
>
> *   !--error 4 *
>
> *There is an undefined variable: histnorm*
>
> **
>
> *at line       6 of exec file called by : *
>
> *exec('C:\Documents and Settings\RMARIGO\Impostazioni 
> locali\Temp\SCI_TMP_2844_\LOAD_INTO_SCILAB-4369136397675464473.sce', 1)*
>
> *while executing a callback*
>
> **
>
> Could you help me?
>
> Thanks a lot
>
> Raffaella Marigo
>
> ____________________________________________________
>
> **Raffaella Marigo**
>
> **/Direzione Generale - U.O. Sviluppo Modellistica Ambientale/**
>
> **ARPA Lombardia**/*//*/-////v.le Restelli 3/1, 20124 MILANO
>
> Tel. +39 02 69 666 298
>
> Fax +39 02 69 666 259
>
> e_mail: r.marigo at arpalombardia.it <mailto:r.marigo at arpalombardia.it>
>


-- 
Adrien Vogt-Schilb (Cired)
Tel: (+33) 1 43 94 *73 77*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20111020/9e124a8d/attachment.htm>


More information about the users mailing list