Signal auto-correlation in matlab (xcorr function)
이전 댓글 표시
Hi!
I am working on an EEG-electrophysiology dataset ('csd'). It is structured as a 3D array (channels x time x trials). The dimensions are 16x1527x200.
I am trying to calculate trial-averaged autocorrelation for each channel and I am getting the error message below. I think it has to do with the last part of my loop? The dimensions of the ac0 output (dot products) are 1x201 for some reason, I think the way the function is built, it adds one more column?
Any help would be great!

댓글 수: 2
Mathieu NOE
2023년 4월 20일
if you expect someone to help you , it's good practice to share some code and data
Panos Kerezoudis
2023년 4월 20일
채택된 답변
추가 답변 (1개)
Md Hasem
2024년 10월 25일
0 개 추천
Read the Sun activity data from file sunspot.dat; 2. Filter the continuous component of the signal (centering the signal or using high-pass filter); 3. Calculate autocorrelation of the signal
카테고리
도움말 센터 및 File Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!