Plot sensor coverage in
CoverageMode property of the
viewer is set to
"Beam", the function plots
only the sensor or emitter beam. When the
CoverageMode property is
"Coverage", the function plots both the beam and coverage of
the reference frame used to interpret the
Position field of the coverage
configuration structures, in addition to the input arguments from the previous
Plot Sensor Coverages in Tracking Globe Viewer
Create a tracking scenario, add a platform in the scenario, and mount a radar sensor on the platform.
scene = trackingScenario(IsEarthCentered=true); r = fusionRadarSensor(1,RangeLimits=[0 5e6]); radarTowerLLA = [10 10 1000]; platform(scene,'Position',radarTowerLLA,'Sensors',r);
coverageConfig function to obtain the coverage configuration of the radar sensor.
covcon = coverageConfig(scene);
Create a tracking globe viewer and plot the coverage.
viewer = trackingGlobeViewer; plotCoverage(viewer,covcon,"ECEF",Color=[1 0 0])
Take a snapshot and show the results.
configs — Coverage configurations
array of coverage configuration structures
Coverage configurations, specified as an array of coverage configuration structures. Each structure contains these fields:
Fields of configurations
|A unique integer to identify sensors or emitters.|
Current boresight angles of the sensor or emitter, specified as:
|Field of view of the sensor or emitter, specified as a two-element vector
Minimum and maximum angles the sensor or emitter can scan from its
|Range of the beam and coverage area of the sensor or emitter in meters.|
|Origin position of the sensor or emitter, specified as a three-element vector
|Rotation transformation from the scenario or global frame to the sensor or emitter mounting frame, specified as a rotation matrix, a quaternion, or three Euler angles in ZYX sequence.|
frame — Reference frame
"NED" (default) |
Reference frame, specified as
"NED" for north-east down,
"ENU" for east-north-up, or
Earth-centered-Earth-fixed. When specified as
"ENU", the origin of the reference frame is at the location
specified by the
ReferenceLocation property of the
Specify optional pairs of arguments as
the argument name and
Value is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
plotCoverage(viewer,configs,Color=[1 0 0])
Color — Color of sensor coverages
N-by-3 matrix of RGB triplets
Color of sensor coverages, specified as an N-by-3 matrix of RGB
triplets, where N is the number of sensor coverages specified in
Alpha — Coverage transparency
scalar in range
Coverage transparency, specified as a scalar in range
1 Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®.