change histogram to PDF
49 views (last 30 days)
Show older comments
Mehri Mehrnia on 28 Jun 2022
I have attached a histogram which is attached. This histogram is computed step by step based on milions of samples.
If I don't compute it step-wise, Matlab gives "out of memory" error!
epsai= very long cell in which each array has millions of samples
cells_max= max of all samples(#millions)
cells_min= min of all samples(#millions)
result till here is attached, then I want to change to PDF as follows but the result is weird!I get lots of zero and few numbers in beginning anf ending pints of intterval!
KSSV on 28 Jun 2022
x = randn(10000,1) ;
pd = fitdist(x,'kernel');
x_values = min(x):0.01:max(x) ;
y_values = pdf(pd,x_values);
Find more on Data Distribution Plots 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!