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

1 vue (au cours des 30 derniers jours)
May
May le 3 Mar 2014
Commenté : May le 3 Mar 2014
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 commentaires
dpb
dpb le 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.
May
May le 3 Mar 2014
thank you!!

Connectez-vous pour commenter.

Réponses (1)

dpb
dpb le 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!

Translated by