Contenuto principale

WaypointTrajectoryVisual

R2026b

Waypoint trajectory visual

Since R2026b

    Description

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

    A WaypointTrajectoryVisual object controls the appearance of FixedTrajectoryBehavior objects in a scenario viewer.

    Creation

    When you add a fixed trajectory behavior to a scenario with open viewers, the scenario automatically creates a WaypointTrajectoryVisual object and stores the object in the Visual property of the corresponding FixedTrajectoryBehavior object.

    You can access a WaypointTrajectoryVisual object by using the getvisual function or by querying the Visual property of the FixedTrajectoryBehavior object.

    Properties

    expand all

    Line color, specified as an RGB triplet, a hexadecimal color code, or a color name. This property specifies the color of the path and the waypoint markers.

    Line width, in pixels, specified as a positive scalar.

    Radius of the waypoint markers, in pixels, specified as a positive scalar.

    Option to show the trajectory path, specified as "on" or "off", or as numeric or logical 1 (true) or 0 (false). A value of "on" is equivalent to true, and "off" is equivalent to false. Thus, you can use the value of this property as a logical value. The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.

    • "on" — Show the trajectory path.

    • "off" — Do not show the trajectory path.

    Option to show circular waypoint markers, specified as "on" or "off", or as numeric or logical 1 (true) or 0 (false). A value of "on" is equivalent to true, and "off" is equivalent to false. Thus, you can use the value of this property as a logical value. The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.

    • "on" — Show the waypoint markers.

    • "off" — Do not show the waypoint markers.

    State of visibility, specified as "on" or "off", or as numeric or logical 1 (true) or 0 (false). A value of "on" is equivalent to true, and "off" is equivalent to false. Thus, you can use the value of this property as a logical value. The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.

    • "on" — Show the visual object in the viewer.

    • "off" — Do not show the visual object in the viewer.

    Version History

    Introduced in R2026b