Thank you….. I’ll follow. but confuse on how to start from this script….will try it.
]]>Please check this post. It has the complete code.
https://www.gaussianwaves.com/2010/02/fading-channels-rayleigh-fading-2/
mu = 0; % mean (mu)
sig = 2; % standard deviation (sigma)
N = 1e5; % number of samples
% Sample from Gaussian distribution %
z = mu + sig*randn(1,N);
% Plot sample histogram, scaling vertical axis
%to ensure area under histogram is 1
dx = 0.5;
x = mu-5*sig:dx:mu+5*sig; % mean, and 5 standard
% deviations either side
H = hist(z,x);
area = sum(H*dx);
H = H/area;
bar(x,H)
xlim([-5*sig,5*sig])
% Overlay Gaussian density function
hold on
f = exp(-(x-mu).^2/(2*sig^2))/sqrt(2*pi*sig^2);
plot(x,f,’r’,’LineWidth’,3)
hold off
hoping for your fast reply at [email protected]
]]>I am not sure about image processing. However, this link might help
http://www.mathworks.com/help/images/ref/imnoise.html