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?

 採用された回答

Star Strider
Star Strider 2018 年 9 月 30 日

0 投票

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

7 件のコメント

MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2018 年 9 月 30 日
ok I just used the following code but it gives me Undefined function or variable 'tLocationScale'. I do not need the normal distribution anymore, i will use the t location scale distribution, what must the syntax be?
pd = fitdist(data1, tLocationScale)
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2018 年 9 月 30 日
i just fixed it and it worked thank you sir
Star Strider
Star Strider 2018 年 9 月 30 日
As always, my pleasure.
Pr-Gh
Pr-Gh 2024 年 3 月 24 日
I am facing a similar problem of having to fit a given probability distribution to large number of different unique data sets so how can I do it inone go.
The answer did not become clear . I do not find the function fitdist(link) in matlab.
Star Strider
Star Strider 2024 年 3 月 24 日
@Pr-Gh — Look again for fitdist since it still very much exists!
Note that ‘(link)’ is not part of the function name!
Pr-Gh
Pr-Gh 2024 年 3 月 25 日
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 2024 年 3 月 25 日
@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.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by