information request about histnorm function

MARIGO RAFFAELLA R.MARIGO at arpalombardia.it
Thu Oct 20 12:41:52 CEST 2011


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>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20111020/f05687eb/attachment.htm>


More information about the users mailing list