主要内容

Scene

R2026b

Geographic environment for 3D scenario

Since R2026b

    Description

    Add-On Required: This feature requires the 3D Scenarios add-on.

    A Scene object represents the 3D simulation environment for a Scenario object.

    Creation

    When you create a 3D scenario by using the scenario function, the function creates a Scene object. The scenario stores the Scene object in its Scene property.

    Properties

    expand all

    This property is read-only after object creation. Set this property by specifying the Terrain name-value argument of the scenario function.

    Terrain name, represented as one of these values:

    • "gmted2010" — Tiled global terrain derived from the GMTED2010 model by the U.S. Geological Survey (USGS) and National Geospatial-Intelligence Agency (NGA) and hosted by MathWorks®. Internet access is required to use "gmted2010".

    • "none" — No terrain.

    • String scalar or character vector — Name of custom terrain added using the addCustomTerrain function.

    Data Types: char | string

    This property is read-only after object creation. Set this property by specifying the Buildings name-value argument of the scenario function.

    Buildings name, represented as one of these values:

    • "none" — No buildings.

    • String scalar or character vector — Name of custom buildings added using the addCustomBuildings function.

    Data Types: char | string

    This property is read-only.

    Spatial reference frame, represented as a ReferenceFrame object.

    The reference frame defines a coordinate system that the scenario uses to represent position, orientation, and motion. Functions such as pose use this reference frame by default. For information about using different reference frames, see Specify Coordinate Conventions for 3D Scenarios.

    Object Functions

    materialsGet materials of scene or actor

    Version History

    Introduced in R2026b