title: How does the Matlab function corr(X,Y) work internally?
body: <p>I know that the function corr(X,Y) computes the correlation coefficient between pairs of columns in two matrices X and Y. I am having a hard time understanding how this function works under the hood. Could anyone help me to understand what matlab is actually doing once it receives two matrices (what type of math is this function doing)?</p>