How to find correlation coefficient between measured data and mathematically retrieved data without corr2.
2 ビュー (過去 30 日間)
古いコメントを表示
I dont have image processing toolbox with my license. I m interested to find correlation coeff between two matrices.
0 件のコメント
採用された回答
ANKUR KUMAR
2017 年 12 月 18 日
編集済み: ANKUR KUMAR
2017 年 12 月 19 日
First method: Use corrcoef to find the correlation coefficient which yields a 2*2 matrix. eg.
A=corrcoef(randi(35,9,9),randi(25,9,9));
result is A=
1.0000 0.0441
0.0441 1.0000
So, you can use A(1,2) or A(2,1).
Second method: If you find the correlation, then you can use corr2(A,B), where A and B must be of equal dimension. It gives the required answer.
If you want the spatial correlation, then you can have to find correlation at every grid using the same function corr2 or you can interpolate into finer grids to get the spatial correlation.
4 件のコメント
ANKUR KUMAR
2017 年 12 月 19 日
Yes, I have cross check and have a faith of MATLAB. Both yield the same answer. Please accept my answer, if it helps you.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!