Main Content

clone

Create copy of radar scenario

Since R2021a

    Description

    newScenario = clone(scenario) creates a copy of the radar scenario, scenario.

    example

    Examples

    collapse all

    Create a radar scenario.

    scene = radarScenario;

    Add a platform with a specified position to the scene.

    platform(scene,'Position',[10 10 0]);

    Create a copy of the scenario. The copy of the scenario, newScene, includes the platform.

    newScene = clone(scene)
    newScene = 
      radarScenario with properties:
    
          IsEarthCentered: 0
               UpdateRate: 10
           SimulationTime: 0
                 StopTime: Inf
         SimulationStatus: NotStarted
                Platforms: {[1x1 radar.scenario.Platform]}
           SurfaceManager: [1x1 radar.scenario.SurfaceManager]
        AtmosphereManager: [1x1 radar.scenario.AtmosphereManager]
    
    

    Input Arguments

    collapse all

    Radar scenario, specified as a radarScenario object.

    Output Arguments

    collapse all

    Copy of radar scenario, returned as a radarScenario object.

    Version History

    Introduced in R2021a