<< CL_chebyshevPoly Math CL_cov2cor >>

CelestLab >> Math > CL_cor2cov

CL_cor2cov

Correlation to covariance matrix

Calling Sequence

covm = CL_cor2cov(corm, sd)

Description

Parameters

corm:

Correlation matrix (NxNxK)

sd:

Standard deviation vector (NxK)

covm:

Covariance matrix (NxNxK)

Authors

See also

Examples

corm = [1, 0, 0.5; 0, 1, -0.8; 0.5, -0.8, 1];
sd = [1; 2; 3];
covm = CL_cor2cov(corm, sd);

// Consistency check:
[corm2, sd2] = CL_cov2cor(covm)

Report an issue
<< CL_chebyshevPoly Math CL_cov2cor >>