Main Content

sync

Synchronize trackHistoryLogic objects

Since R2021a

Description

sync(historyLogic1,historyLogic2) synchronizes historyLogic1 based on historyLogic2 so that they have the same history value.

example

Examples

collapse all

Create two trackHistoryLogic objects.

logic1 = trackHistoryLogic
logic1 = 
  trackHistoryLogic with properties:

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

logic2 = trackHistoryLogic('ConfirmationThreshold',[3 3],'DeletionThreshold',[5 6])
logic2 = 
  trackHistoryLogic with properties:

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

Initialize logic2 with a hit.

init(logic2)
logic2
logic2 = 
  trackHistoryLogic with properties:

    ConfirmationThreshold: [3 3]
        DeletionThreshold: [5 6]
                  History: [1 0 0 0 0 0]

Synchronize logic1 to logic2.

sync(logic1,logic2);
logic1
logic1 = 
  trackHistoryLogic with properties:

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

Input Arguments

collapse all

Track history logic, specified as a trackHistoryLogic object.

Track history logic, specified as a trackHistoryLogic object.

Version History

Introduced in R2021a