MATLAB: How can I run the distributionFitter multiple times at once

fitterloopnormal

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?

Best Answer

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