필터 지우기
필터 지우기

xcorr - per matrix column

조회 수: 3 (최근 30일)
omri r
omri r 2017년 6월 20일
댓글: KSSV 2017년 6월 20일
Hi,
I'm trying to achieve something with xcorr and cannot succeed.
Would appreciate any help.
I have quite a big matrix (700,1500).
I would like to get the autocorrelation per matrix column. I tried to use the xcorr, but it gives me the x-correlation also to other columns.
How would I autocorrelation per matrix column?
  댓글 수: 1
omri r
omri r 2017년 6월 20일
without a for loop

댓글을 달려면 로그인하십시오.

답변 (1개)

KSSV
KSSV 2017년 6월 20일
A = rand(700,1500) ;
C = zeros([],[]) ;
for i = 1:size(A,1)
C(:,i) = xcorr(A(:,i)) ;
end
  댓글 수: 2
omri r
omri r 2017년 6월 20일
Thanks, I meant without a for loop. It would take to much time.
KSSV
KSSV 2017년 6월 20일
Have you tried that? That dimension matrix not taking much time.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by