function out = corr2cov(sd,cor)
out=diag(sd)*cor*diag(sd);
