Contenu principal

prune

R2026b

Prune the filter by removing selected components

Description

prune(phd,pruneIndices) removes components in phd filter object, phd, specified by pruneIndices.

Input Arguments

collapse all

phd filter, specified as a ggiwphd filter object or a gmphd filter object.

Example: phd

Data Types: object

Indices of components to be pruned, specified as a 1-by-N logical vector, where N is the number of components in the density. If the ith element of the vector is 1 instead of 0, then the ith component will be removed from the density.

Example: [0 1 0 1 0 0]

Data Types: logical

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

GPU Code Generation
Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.

Version History

Introduced in R2019a