Main Content

init

Initialize track logic with first hit

Since R2020a

Description

init(historyLogic) initializes the track history logic with the first hit.

example

Examples

collapse all

Create a history-based logic with default confirmation and deletion thresholds.

historyLogic = trackHistoryLogic
historyLogic = 
  trackHistoryLogic with properties:

    ConfirmationThreshold: [2 3]
        DeletionThreshold: [6 6]
                  History: [0 0 0 0 0 0]

Initialize the logic, which records a hit as the first update to the logic.

init(historyLogic)
history = historyLogic.History;
disp(['History: [',num2str(history),'].']);
History: [1  0  0  0  0  0].

Input Arguments

collapse all

Track history logic, specified as a trackHistoryLogic object.

Extended Capabilities

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

Version History

Introduced in R2020a