MATLAB: Generating random variable from certain standard deviation and mean

random variable

Could you please help me how can I generate random variable from Gaussian distribution with zero mean and 0.3 standard deviation?

Best Answer

a = .3;% standard deviation
b = 0; % mean
out = a.*randn + b;
Related Question