'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 Center および File ExchangeCorrelation and Convolution についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by