cov2corr

Convert (auto)covariance to (auto)correlation

Syntax

   R = cov2corr(G)

Arguments

See also Common variable names and data structures.

input

   G          a covariance matrix or autocovariance sequence

output

   R          a correlation matrix or autocorrelation sequence

Description

Calculates (auto)correlation R from (auto)covariance G.