Main Content

show

Show object in satellite scenario viewer

Since R2021a

    Description

    example

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

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

    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 = 
      1x2 Satellite array with properties:
    
        Name
        ID
        ConicalSensors
        Gimbals
        Transmitters
        Receivers
        Accesses
        GroundTrack
        Orbit
        OrbitPropagator
        MarkerColor
        MarkerSize
        ShowLabel
        LabelFontColor
        LabelFontSize
    
    

    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
        LeadLineColor
        TrailLineColor
        VisibilityMode
    
    

    Play the scenario and set the animation speed of the simulation to 40.

    play(sc,PlaybackSpeedMultiplier=40)

    Input Arguments

    collapse all

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

    Note

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

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

    Version History

    Introduced in R2021a