Info

This question is closed. Reopen it to edit or answer.

Fitting the most appropriate distribution to data

1 view (last 30 days)
Hari krishnan
Hari krishnan on 16 Oct 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
I have data stored in the variable 'read_colony_observation_data_goodnest'. I am making a histogram of this data and trying to fit an exponential distribution to it. Rather than fitting one distribution, its giving me a series of fits. Any help will be appreciated.
all_recruitment_colony_data = 'control_recruitment_duration_combined.xlsx';
read_colony_observation_data_goodnest = xlsread(all_recruitment_colony_data);
histogram(read_colony_observation_data_goodnest,'Normalization','pdf');
xlabel('time (sec)')
ylabel('pdf')
hold on
pd = fitdist(read_colony_observation_data_goodnest,'Exponential');
y = pdf(pd,read_colony_observation_data_goodnest);
plot(read_colony_observation_data_goodnest);
Excel file of data is attached.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by