MATLAB: How to solve undefined function error when using corr2

corr2

I have a set of values (x,y) and (x,y1). My x value is same.I need to find 2D correlation coefficient between them.I used corr2.It's showing "Undefined function 'corr2' for input arguments of type 'double'."Plz help

Best Answer

corr2() is part of the Image Processing Toolkit. You do not have that installed, or you do not have it licensed (or for some strange reason it is not in your MATLAB path.)