The function Correlate calculates and returns the correlation coefficient of the two matrices self and OtherMat. The two matrices are correlated elementwise.
Hint:
Please note that the two matrices self and OtherMat need not be of equal size otherwise an exception will be raised.