Main Content

initialize

Initialize state and covariance of tracking filter

Description

initialize(filter,state,statecov) initializes the filter by setting the State and StateCovariance properties of the filter with the corresponding state and statecov inputs.

initialize(filter,state,statecov,Name,Value) also initializes properties of filter by using one or more name-value pairs. Specify the name of the filter property and the value to which you want to initialize it. You cannot change the size or type of the properties that you initialize.

Input Arguments

collapse all

Filter for object tracking, specified as one of these objects:

Filter state, specified as a real-valued M-element vector, where M is the size of the filter state.

Example: [200; 0.2]

Data Types: double

State estimation error covariance, specified as a positive-definite real-valued M-by-M matrix. M is the size of the filter state. The covariance matrix represents the uncertainty in the filter state.

Example: [20 0.1; 0.1 1]

Extended Capabilities

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

Introduced in R2018b