How can I estimate parameters of the student's t distribution in a loop?

1 view (last 30 days)
I have a loop which generates several random numbers, each time I have to estimate their parameters using the univariate Student's t and then use the estimated parameters later on. Is there any way I can do this? fitdist lets me estimate them however it doesn't seem to let me 'call' them so I cannot use them later on in the mfile.
  6 Comments
dpb
dpb on 3 Mar 2014
x1 is a structure whose field names are mu, sigma, nu.
To reference them, it's
x1.mu
etc. Read in the doc of "data Types" for more details of Matlab.

Sign in to comment.

Answers (1)

dpb
dpb on 3 Mar 2014
The returned distribution object (structure) has fields mu and sigma

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!