% Free space loss at 2.4 and 5 GHz
% Author: Michel Barbeau
% Version: January 4, 2015
% distance (in meters)
d=10:25:1000;
% 2.4 GHz (in dB)
L24 = 40 + 20*log10(d);
% 5 GHz (in dB);
L5 = 46.4 + 20*log10(d);
plot(d,L24,'.');
hold on;
plot(d,L5,'--');
title('Free Space Loss at 2.4 GHz (..) and 5 GHz (--)');
xlabel('Distance (in meters)');
ylabel('Loss (in dB)');