This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Distances between measurements and predicted measurements


dist = distance(filterObj,zMatrix)
dist = distance(filterObj,zMatrix,measurementParams)


dist = distance(filterObj,zMatrix) computes the distance between one or more predicted measurements given in zMatrix and the current measurement in the filterObj.

dist = distance(filterObj,zMatrix,measurementParams) specifies additional parameters that are used by the MeasurementFcn of the filterObj.

Input Arguments

collapse all

Filter for object tracking, specified as an object.

Measurements of tracked objects, specified as a matrix. Each row of the matrix contains a measurement vector.

Parameters for measurement function, specified as a cell array. The parameters are passed to the measurement function defined in the MeasurementFcn property of the filterObj

Output Arguments

collapse all

Distances between measurements, returned as a row vector. Each element corresponds to a distance between the predicted measurement in the filterObj and a row of the zMatrix.

Extended Capabilities

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

Introduced in R2017a