Created
March 12, 2021 04:30
-
-
Save awade/73db9e0bd3d9832ce755bad9c8cac585 to your computer and use it in GitHub Desktop.
Matlab helper function for interpolating loss of coaxial RG58 cable as function of frequency per unit length.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dBLossPerM = RG58_loss(f) | |
% Function for estimate RG58 coaxial cable loss as a function of frequency | |
% per meter. Data is drawn from https://www.w4rp.com/ref/coax.html and is | |
% not varified with real lab measurments. Take it with a | |
% grain of salt. | |
% | |
% Output interpolates from the spaced data points. This is for estimating | |
% only. | |
% | |
% Author: Andrew Wade | |
% Date: Oct 30, 2020 | |
ff = [144e6,220e6,450e6,915e6,1.2e9,2.4e9,5.8e9]; % Sample frequencies | |
lv = [20.3,24.3,34.8,54.1,69.2,105.6,169.2]./100; % convert to dB per m | |
dBLossPerM = interp1(ff, lv, f); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment