The function cov2cor(C,s) source code states that: '[It] compute[s] the correlation matrix from the covariance matrix C and a vector of standard deviations s. I was expecting a function that would compute the correlation matrix AND the standard deviation, from the covariance matrix only. This approach is followed by Matlab.