Skip to content

Instantly share code, notes, and snippets.

@Tschucker
Created August 15, 2021 18:24
Show Gist options
  • Save Tschucker/c2127d907380d6db80a9fbeb53d61b1d to your computer and use it in GitHub Desktop.
Save Tschucker/c2127d907380d6db80a9fbeb53d61b1d to your computer and use it in GitHub Desktop.
Matlab Topographic RF Propagation Example
%% RF Propagation Simulation
%Tom Schucker
%% Set Custom Terrain
%terrain file (download from https://earthexplorer.usgs.gov/)
dtedfile = "n37_w122_1arc_v3.dt2";
%data attribution
attribution = "SRTM 3 arc-second resolution. Data available " + ...
"from the U.S. Geological Survey.";
%enable the custom terrain for use
addCustomTerrain("bay",dtedfile,"Attribution",attribution)
%% Set Transmitter Location
hotspot = txsite("Name","hotspot", ...
"Latitude",38.077450, ...
"Longitude",-122.228539, ...
"AntennaHeight", 3);
%show the location on the map
show(hotspot)
%% Computer RF Coverage
coverage(hotspot, ...
"MaxRange",50000, ...
"SignalStrengths",-100:-5)
%% Remove Custom Terrain
removeCustomTerrain("bay")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment