| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Image Processing Toolbox |
| Contents | Index |
| Learn more about 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
![]() | cornermetric | cp2tform | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |