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에서 Uniform Distribution (Continuous)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!