
How I find the correlation coefficient between two non-identical matrices?
2 ビュー (過去 30 日間)
古いコメントを表示
A=[1,2,3,3,4,5,6,7,8,9
1,2,3,6,5,4,8,9,8,7];
B=[1,3,4,8,10,15,18,19,20,25];
C=corr2(A,B)
-----------------------------------------------------
Error using corr2>ParseInputs (line 39)
A and B must be the same size.
Error in corr2 (line 21)
[a,b] = ParseInputs(varargin{:});
Error in Untitled (line 4)
C=corr2(A,B)
0 件のコメント
回答 (1 件)
Totanly
2019 年 1 月 8 日
First of all, you have to know about the physical significance of correlation. that is if y=function(x) like equation ..means for each value of x there should be a value of y. but sometimes practically we get more values of y corresponding to each value of x. in that case number of y values should be identified.
for example
if x=distance and y=number of car covered the distance with velocities ....given in the table

in this case you can take mean (or mediun or other) of the velocities for each distance and then calculate correlation.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Polynomials についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!