histfit with negative binomial distribution

3 views (last 30 days)
When I try to fit a negative binomial distribution to my data using
histfit(x, 1000, 'negative binomial')
I get an error of "The parameter R must be a positive finite numeric scalar". What does that mean?

Answers (0)

Community Treasure Hunt

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

Start Hunting!