Main Content

show

Show object in satellite scenario viewer

    Description

    example

    show(item) shows the item on all open Satellite Scenario Viewers.

    show(item,v) shows the graphic on the Satellite Scenario Viewer specified by v.

    Examples

    collapse all

    Create a satellite scenario with a start time of 02-June-2020 8:23:00 AM UTC, and the stop time set to one day later. Set the simulation sample time to 60 seconds.

    startTime = datetime(2020,6,02,8,23,0);
    stopTime = startTime + days(1);
    sampleTime = 60;
    sc = satelliteScenario(startTime,stopTime,sampleTime);

    Add two satellites to the scenario using their Keplerian elements.

    semiMajorAxis = [10000000; 15000000];
    eccentricity = [0.01; 0.02];
    inclination = [0; 10];
    rightAscensionOfAscendingNode = [0; 15];
    argumentOfPeriapsis = [0; 30];
    trueAnomaly = [0; 20];
    
    sat = satellite(sc, semiMajorAxis, eccentricity, inclination, ...
        rightAscensionOfAscendingNode, argumentOfPeriapsis, trueAnomaly)
    sat = 
      1×2 Satellite array with properties:
    
        Name
        ID
        ConicalSensors
        Gimbals
        Transmitters
        Receivers
        Accesses
        GroundTrack
        Orbit
        OrbitPropagator
        MarkerColor
        MarkerSize
        ShowLabel
        LabelFontSize
        LabelFontColor
    
    

    View the satellites in orbit and the ground tracks over one hour.

    show(sat)
    groundTrack(sat,'LeadTime',3600)
    ans=1×2 object
      1×2 GroundTrack array with properties:
    
        LeadTime
        TrailTime
        LineWidth
        TrailLineColor
        LeadLineColor
        VisibilityMode
    
    
    play(sc)

    Input Arguments

    collapse all

    Satellite, GroundStation, ConicalSensors, GroundTrack, FieldOfView, or Access object. These objects must belong to the same satelliteScenario, object.

    Note

    If item is a satellite or a ground station, then the associated gimbals are also displayed on the viewer.

    Satellite scenario viewer, specified as a scalar, vector, or array of satelliteScenarioViewer objects.

    Introduced in R2021a