Correlate Signals with different time points

1 回表示 (過去 30 日間)
Sam Hurrell
Sam Hurrell 2022 年 9 月 27 日
編集済み: Chunru 2022 年 9 月 30 日
I have two datasets (simulation and experimental) with normalised amplitudes, and I need to find a correlation coefficient for the two outputs. The problem is that these two signals have their values taken at different timesteps to each other, so how can I correlate them? Additionally how could I correlate them if the two datasets were at different lengths?
  1 件のコメント
Mathieu NOE
Mathieu NOE 2022 年 9 月 29 日
hello
is the delta in time steps constant or not ?
have you tried to use xcorr to measure (and correct) for delay ?

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

回答 (1 件)

Chunru
Chunru 2022 年 9 月 30 日
編集済み: Chunru 2022 年 9 月 30 日
You can resample the data into sime sampling time:
doc resample
doc retime
doc interp1
After both signals are sampled in the same time grid:
doc crosscorr
doc xcorr

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by