N = 10000000; stepsize = .05;a = 0:stepsize:4;% Rayleigh model
% Amplitude plot
Rayleigh_ch = (randn(1,N)+1i*randn(1,N))/sqrt(2);b = abs(Rayleigh_ch);%c = b/(stepsize*sum(b));
norma = b - min(b(:))normA = norma ./ max(norma(:)) %
fig = figure;hist(normA,a);
MATLAB: Can anyone please tell, how can I normalize the magnitude between 0 to 1?? Currently it is varying upto (2*10^6). I want it to vary between 0-1.
communicationplotting histogram for magnitude of rayleigh fading channel
Best Answer