フィルターのクリア

ismembertol() for one direction tolerance and for one match at a time

2 ビュー (過去 30 日間)
sani
sani 2020 年 1 月 30 日
編集済み: Rik 2020 年 1 月 30 日
Hi all,
I'm using the ISMEMBERTOL() function to match events from 2 tables (matches by time), but the function do double side match (negative delta T and positive while I need the positive only) and also make matches for the same event from one detector to multiple events (within the tolerance) from the other detector.
I need to make the matches for only positive times and also 1:1 events match, any suggestions?
this is the code I'm using
matchwindow =200000; %matching window within which two events are considered equal, in nanoseconds.
S_delay = 400; %offset for S table, in nanoseconds.
[ismatch, matches] = ismembertol(S_table.time_S + S_delay, G_table.time_G , matchwindow, 'DataScale', 1);
merged = [G_table(matches(ismatch), :), scint_table(ismatch, :)];
  1 件のコメント
Mohammad Sami
Mohammad Sami 2020 年 1 月 30 日
try timetables and synchronize function for merging timeseries data.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by