Get current state of track logic
Get Recent History of History-Based Logic
Create a history-based logic. Specify confirmation threshold values Mc and Nc as the vector [3 5]. Specify deletion threshold values Md and Nd as the vector [6 7].
historyLogic = trackHistoryLogic('ConfirmationThreshold',[3 5], ... 'DeletionThreshold',[6 7]);
Get the recent history of the logic. The history vector has a length of 7, which is the greater of Nc and Nd. All values are
0 because the logic is not initialized.
h = output(historyLogic)
h = 1x7 logical array 0 0 0 0 0 0 0
Initialize the logic, then get the recent history of the logic. The first element, which indicates the most recent update, is 1.
init(historyLogic); h = output(historyLogic)
h = 1x7 logical array 1 0 0 0 0 0 0
Update the logic with a hit, then get the recent history of the logic.
hit(historyLogic); h = output(historyLogic)
h = 1x7 logical array 1 1 0 0 0 0 0
history — Recent history
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Introduced in R2020a