"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <hog5n7$ac8$1@fred.mathworks.com>...
> "John D'Errico" <woodchips@rochester.rr.com> wrote in message <hog4oq$no4$1@fred.mathworks.com>...
> > Let me just add that the trick is to use the inverse
> > incomplete gamma function for this, inverting
> > the results from rand through it. This works because
> > the incomplete gamma function is identical to the
> > gamma CDF, at least when you then scale the
> > incomplete gamma function by dividing by the
> > complete gamma (which you get from gamma.m)
> >
> > HTH,
> > John
>
> Yes, you're right, John, that would be preferable.
>
> Roger Stafford
Dear John and Roger
Sorry for misleading both of you. I mean random chi number in the same way as:
random('Chi2',v,100,1); where v is degrees of freedom and (100,1) is the output column vector. Is there a way to get the same output without using the random function?
Best regards
Jens
