Main Content

removeCustomTerrain

Remove custom terrain data

Since R2019a

Description

example

removeCustomTerrain(terrainName) removes the custom terrain data specified by the user-defined terrainName. You can use this function to remove terrain data that is no longer needed. The terrain data to be removed must have been previously added using addCustomTerrain.

Examples

collapse all

Add terrain for a region around Boulder, CO. The DTED file was downloaded from the "SRTM Void Filled" data set available from the U.S. Geological Survey.

dtedfile = "n39_w106_3arc_v2.dt1";
attribution = "SRTM 3 arc-second resolution. Data available " + ...
   "from the U.S. Geological Survey.";
addCustomTerrain("southboulder",dtedfile,"Attribution",attribution)

Use the custom terrain name in Site Viewer.

viewer = siteviewer("Terrain","southboulder");

Create a site with the terrain region.

mtzion = txsite("Name","Mount Zion", ...
   "Latitude",39.74356, ...
   "Longitude",-105.24193, ...
   "AntennaHeight", 30);
show(mtzion)

Create a coverage map of the area within 20 km of the transmitter site.

coverage(mtzion, ...
   "MaxRange",20000, ...
   "SignalStrengths",-100:-5)

Remove the custom terrain.

close(viewer)
removeCustomTerrain("southboulder")

Input Arguments

collapse all

User-defined identifier for terrain data previously added using addCustomTerrain, specified as a string scalar or a character vector.

Data Types: char | string

Version History

Introduced in R2019a