'corrcoef' doesn't return a matrix as it should, but I always get 1?

조회 수: 2 (최근 30일)
C A
C A 2022년 10월 1일
편집: Torsten 2022년 10월 2일
for i=1:numel(time)
coefR=corrcoef([res2(i,:),res3(i,:)]);
end
res2 and res3 are 11x34 matrices where size(time)=11 and res2 and res3 have different values/behaviours and cannot have a correlation coefficient of 1.

채택된 답변

Torsten
Torsten 2022년 10월 1일
편집: Torsten 2022년 10월 2일
for i=1:numel(time)
coefR{i} = corrcoef((res2(i,:)).',(res3(i,:)).');
end

추가 답변 (0개)

카테고리

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

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by