correlation for multi-dimensional arrays
이전 댓글 표시
Hi everyone,
I need to compute correlation coefficients - lots of them. I have two three-dimensional arrays (frequency x time x observations) and I want to compute correlations between the two arrays along the third dimension. The result I need is a two-dimensional array of correlation coefficients (frequency x time). If I understand the corr function correctly, corr is only for column vectors. If I loop over my other two dimensions, I can of course compute the correlation for each time-frequency point separately, but this is very slow.
Is there a way to compute correlation coefficients for multi-dimensional arrays along an arbitrary dimension, or any other way to speed up the computation of correlations?
Thanks!
댓글 수: 1
Raj
2014년 8월 27일
Can you please provide formulas (math models) for the multi-dimensional correlation?
채택된 답변
추가 답변 (1개)
Mustapha Adamu
2018년 12월 10일
1 개 추천
Dear David,
How do you go about this if you have nans,
Kind regards;
mustapha
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!