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

2 vues (au cours des 30 derniers jours)
C A
C A le 1 Oct 2022
Modifié(e) : Torsten le 2 Oct 2022
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.

Réponse acceptée

Torsten
Torsten le 1 Oct 2022
Modifié(e) : Torsten le 2 Oct 2022
for i=1:numel(time)
coefR{i} = corrcoef((res2(i,:)).',(res3(i,:)).');
end

Plus de réponses (0)

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by