Code Comments
Programming Forum and web based access to our favorite programming groups.Is there a function in Matlab that converts Covariance matrices in Correlation matrices? thanks Philipp
Post Follow-up to this messageIn article <ef078c5.-1@webx.raydaftYaTP>, philipp <pilleditsch@mays.tamu.edu> wrote: > Is there a function in Matlab that converts > Covariance matrices in Correlation matrices? > thanks > Philipp ------ Hello Philipp, I don't know of any function in the general matlab repertoire that does it, but you can compute it yourself in two lines. Let C be the covariance matrix and R the correlation matrix. Then t = diag(1./sqrt(diag(C))); R = t*C*t; should get it. (Remove "xyzzy" and ".invalid" to send me email.) Roger Stafford
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.