Main Content

clear

Clear plots in trackingGlobeViewer

Since R2021b

Description

example

clear(viewer) removes all graphics from the tracking globe viewer.

Examples

collapse all

Create a tracking globe viewer and plot a geoTrajectory.

viewer = trackingGlobeViewer;
traj = geoTrajectory(Waypoints=[0 0 0; 25 25 0],TimeOfArrival=[0 36000]);
plotTrajectory(viewer,traj,Color=[1 0 0]);
campos(viewer,[21 17.5 1.7e7]);
drawnow
snapshot(viewer)

Clear the plots and show the result.

clear(viewer)
snapshot(viewer)

Input Arguments

collapse all

Tracking globe viewer, specified as a trackingGlobeViewer object.1

Version History

Introduced in R2021b


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®.