MATLAB: How to write *normrnd* by theself

normrnd

I want to write normrnd 's code by myself but I have no idea about it. thanks for help

Best Answer

Just use
x=randn(m,n);
y=A*x+B;
and choose A and B appropriate to the sigma, mu that you want.
Related Question