主要内容

delete

R2026b

Delete satellite scenario entity from viewer

Since R2026b

    Description

    delete(item) deletes the satellite scenario entity specified by item from the Satellite Scenario Viewer.

    example

    Examples

    collapse all

    Create a satellite scenario object.

    sc = satelliteScenario;

    Add a satellite to the scenario using Keplerian elements.

    semiMajorAxis = 10000000;                           % meters
    eccentricity = 0;
    inclination = 0;                                    % degrees
    rightAscensionOfAscendingNode = 0;                  % degrees
    argumentOfPeriapsis = 0;                            % degrees
    trueAnomaly = 0;                                    % degrees
    sat1 = satellite(sc,semiMajorAxis,eccentricity, ...
        inclination,rightAscensionOfAscendingNode, ...
        argumentOfPeriapsis,trueAnomaly,Name="Satellite 1");

    Visualize the scenario by using the Satellite Scenario Viewer.

    viewer = satelliteScenarioViewer(sc);
    [startLat,startLon,startAlt] = campos(viewer);
    pause(2)

    Delete the first satellite from the scenario.

    delete(sat1);

    Visualize the updated scenario. The first satellite is no longer present.

    campos(viewer);

    Input Arguments

    collapse all

    The item, specified as a Satellite, GroundStation, ConicalSensor, GroundTrack, FieldOfView, or Access object. These objects must belong to the same satelliteScenario object.

    Version History

    Introduced in R2026b