Main Content

isDynamic

Determine whether grid cell is dynamic

Since R2021a

    Description

    TF = isDynamic(map) returns a logical array containing 1 (true) where the corresponding cell of the dynamic evidential grid, map, is dynamic, and 0 (false) where it is not.

    TF = isDynamic(map,coordinates,"local") returns a logical vector of dynamic status for points specified by the local coordinates.

    TF = isDynamic(map,indices,"grid") returns a logical vector of dynamic status for grid cells specified by the cell indices.

    Input Arguments

    collapse all

    Dynamic evidential grid map, specified as a dynamicEvidentialGridMap object.

    Coordinates of local reference frame, specified as an N-by-2 real-valued matrix.

    Example: [1 1;2.5 3]

    Grid cell indices, specified as an N-by-2 matrix of positive integers.

    Example: [1 1;2 3]

    Output Arguments

    collapse all

    Grid cell dynamic status, returned as a logical matrix or vector. Each element is 1 (true) if the corresponding cell or point is dynamic, and 0 (false) otherwise.

    • If the input to function is only the map, TF is returned as an N-by-M matrix, where N is the number of cells in the x-direction of the map and M is the number of cells in the y-direction of the map.

    • If the input contains coordinates, TF is returned as an N-by-1 vector, where N is the number of coordinates specified by the coordinates argument.

    • If the input contains indices, TF is returned as an N-by-1 vector, where N is the number of cells specified by the indices argument.

    Version History

    Introduced in R2021a