t******n 发帖数: 21 | 1 I used matlab to generate a normal distribution with 0 as mean and 1 as
standard deviation. But if I used function 'normfit' to fit the generated
dataset, the new mu and sigma values do not match the original data. Is this
right?
normpdf: 0, 1
normfit: 9.9900e-02,1.3498e-01 | s*******g 发帖数: 37 | 2 u made a stupid mistake in your code.
U didnot generate the norm-distributed data, since the variable [enm_bf_mcnx
] in your code could not come from standard norm.
U should try the following:
enm_bf_mcnx=normrnd(0,1,1000,1);
[mu,sigma]=normfit(enm_bf_mcnx) |
|