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 CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by