MATLAB Answers

Plot attenuation against wavelength

5 views (last 30 days)
Hadeel M Y
Hadeel M Y on 24 Aug 2020
Answered: Shubham Rawat on 27 Aug 2020
How to Plot attenuation against wavelength?

  0 Comments

Sign in to comment.

Accepted Answer

Shubham Rawat
Shubham Rawat on 27 Aug 2020
Hi Hadeel,
Here is an example of Signal Attenuation Due to Rainfall:
c = physconst('lightspeed');
rr = 20.0;
freq = [1:1000]*1e9;
L = rainpl(10000,freq,rr);
wavelength = c./freq; % wavelength calculated by speed of light/frequency
semilogx(wavelength,L)
grid
xlabel('Wavelength (m)')
ylabel('Attenuation (dB)')

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!