how can I run the distributionFitter multiple times at once?

1 visualización (últimos 30 días)
Dear All, I generated 40 data sets (data1 to data40), i need to find the normal distribution parameters for each data set, I use the distributionFitter command and it works well, my question is how can i please do that at one time and save the parameters values for each data set? i mean i want to save time instead of running the fitter 40 times? is there any function for this?

Respuesta aceptada

Star Strider
Star Strider el 30 de Sept. de 2018

I would use the fitdist (link) function instead to fit your data.

  7 comentarios
Pr-Gh
Pr-Gh el 25 de Mzo. de 2024
Fitdist is there but does it require a loop( such as" for" ) to read the large number of data sets or otherwise...that part is not clear
Star Strider
Star Strider el 25 de Mzo. de 2024
@Pr-Gh — It is very clear!
From, the documentation:
pd = fitdist(x,distname) creates a probability distribution object by fitting the distribution specified by distname to the data in column vector x.’ (Emphasis added)
The argument has to be a vector.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by