メインコンテンツ

sync

複数の trackHistoryLogic オブジェクトの同期

R2021a 以降

説明

sync(historyLogic1,historyLogic2) は、historyLogic2 に基づいて historyLogic1 を同期して、それらの履歴値を同じにします。

すべて折りたたむ

trackHistoryLogic オブジェクトを 2 つ作成します。

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]

hit を使用して logic2 を初期化します。

init(logic2)
logic2
logic2 = 
  trackHistoryLogic with properties:

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

logic1logic2 に同期します。

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

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

入力引数

すべて折りたたむ

トラック履歴ロジック。trackHistoryLogic オブジェクトとして指定します。

トラック履歴ロジック。trackHistoryLogic オブジェクトとして指定します。

バージョン履歴

R2021a で導入