Main Content

deleteViewport

Delete viewport from 3D environment

Since R2024b

    Description

    deleteViewport(world,viewport) deletes the view specified by viewport from the 3D environment.

    Input Arguments

    collapse all

    World object where viewport is deleted, specified as a sim3d.World object. You can view the fields in the viewport structure from the Viewports property of the sim3d.World object.

    Handle to the viewport created using the createViewport function, specified as a character array or string.

    Example: viewport = viewport1

    Version History

    Introduced in R2024b