我似乎无法理解为什么下面给出的简单代码不起作用。我得到NaN
了P_j
价值观。
% Plotting the CDF for normally distributed variable
mu_j = 0.008;
simga_j = -0.002;
x= 0.008 -0.002*randn(100000,1);
X_j = min(x) : (max(x) - min(x))/100000 : max(x);
P_j = normcdf(X_j,0.008,-0.002);
figure(1)
plot(X_j,P_j);
谢谢