Plot of Probability Density function in MATLAB
显示 更早的评论
I have time series data.I want to see the plot of PDF.For this, in MATLAB,I have to mention the name of the PDF-type like 'norm'.All PDF types are continuous line.But,I need discrete PDF data points plot.
采纳的回答
更多回答(3 个)
Keerthivasan Rajamani
2017-11-2
1 个投票
Maybe this could be helpful to consider:
histogram(variable_name,'Normalization','probability')
Daniel Shub
2011-12-8
The pdf function can handle binomial, Poisson, and discrete uniform distributions, so not all of them are continuous.
Also are you sure you don't just want to do:
hist(x)
where x is your data?
类别
在 帮助中心 和 File Exchange 中查找有关 Binomial Distribution 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!