Normal distribution problem using histfit
Show older comments
Hi MatLab-friends,
I have a question about histfit. My dataset only contains positive (or 0s) values but when I make my histfit, the normal distribution goes from negative values. How can I make the distribution line only consider positive values?
Attaching figure. How I want the distribution to look is seen with the black line.
Thank you in advance.
P.S.
The code I use now is:
F=d_f_t(:,2) %
n_d=histfit(F)
2 Comments
dpb
on 17 May 2018
The distribution you drew doesn't represent the data well at all; the normal is a very bad choice being symmetric and unbounded; for a continuous distribution you might try lognormal.
Vlatko Milic
on 17 May 2018
Accepted Answer
More Answers (0)
Categories
Find more on Exploration and Visualization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!