| Image Processing Toolbox™ | ![]() |
r = corr2(A,B)
r = corr2(A,B) computes the correlation coefficient between A and B, where A and B are matrices or vectors of the same size.
A and B can be numeric or logical. The return value r is a scalar double.
corr2 computes the correlation coefficient using

where
= mean2(A), and
= mean2(B).
corrcoef in the MATLAB® Function Reference
![]() | convn | cp2tform | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |