Probability density functions (PDF) in Matlab 2012a or earlier
显示 更早的评论
Does anyone know how to calculate PDF in Matlab version 2012a or earlier?
If I used the following default code in Matlab for PDF, I'll see the following error:
mu = 0;
sigma = 1;
pd = makedist('Normal',mu,sigma);
x = [-2 -1 0 1 2];
y = pdf(pd,x)
Undefined function 'makedist' for input arguments of type 'char'.
采纳的回答
更多回答(1 个)
Image Analyst
2015-4-7
0 个投票
I don't know exactly what that does but if it gives you a sampling of numbers drawn from a normal distribution with a specified mu and sigma, you could use randn() instead.
类别
在 帮助中心 和 File Exchange 中查找有关 Sensitivity Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!