Main Content

correct

Correct the state and state estimation error covariance

Description

xCorr = correct(abfilter,zMeas) returns the corrected the state, xCorr, of the tracking filter abfilter given the measurement, zMeas. Calling correct overwrites the internal states of the object.

[xCorr,pCorr] = correct(abfilter,zMeas) also returns the corrected state covariance matrix, pCorr.

[xCorr,pCorr,zCorr] = correct(abfilter,zMeas) also returns the corrected measurement, zCorr.

Input Arguments

collapse all

Alpha-beta tracking filter, specified as a phased.AlphaBetaFilter object. Calling correct overwrites the internal states of the object.

Measurement of tracked object, specified as a K-by-1 vector, where K is the size of the measurement.

Output Arguments

collapse all

Corrected state of the filter, returned as an L-by-1 vector. The corrected state overrides the value of the State property.

Corrected state covariance of the filter, returned as an L-by-L matrix. The corrected state covariance overrides the value of the StateCovariance property.

Corrected measurement of the filter, returned as a K-by-1 vector.

Extended Capabilities

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

Version History

Introduced in R2018b

See Also

Functions

Objects