Main Content


Initialize track logic with first hit



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


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.

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™.

Introduced in R2020a