How to plot a mixed density function?
Show older comments
Hi
So, lets say I get 10000 random numbers:
-5000 from normal distribution with mean = 1 and sigma = 1
-5000 from normal distribution with mean = 4 and sigma = 1
Now I have to plot density function.
I know how to plot single density function, not a mix.
Can you help me?
Thanks,
Lukas
1 Comment
Torsten
on 5 Apr 2020
h = histogram(data,'Normalization','probability')
Accepted Answer
More Answers (0)
Categories
Find more on Probability Density Functions 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!