> I tried this with fitdist('lognormal',data), but that fits a single
> lognormal distribution. Does any of you know how to do this for a bimodal
> distribution? Is that even possible with fitdist? Does anyone know a
> workaround?
There is no supported bimodal distribution in fitdist, aside from something
like the beta distribution which would probably not be appropriate in your
case.
There is an example of how to use the mle function to fit a mixture of two
distributions. Look on this page
http://www.mathworks.com/help/stats/examples/fitting-custom-univariate-distributions.html
for the title "Fitting a More Complicated Distribution: A Mixture of Two
Normal." You can adapt this to a distribution other than normal if you want.
If you do decide to fit a mixture of normal distributions, check out "help
gmdistribution.fit".
-- Tom