필터 지우기
필터 지우기

how can I run the distributionFitter multiple times at once?

조회 수: 4 (최근 30일)
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2018년 9월 30일
댓글: Star Strider 2024년 3월 25일
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일

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

  댓글 수: 7
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