cov2corr
将协方差转换为标准差和相关系数
说明
[
将协方差转换为标准差和相关系数。ExpSigma
,ExpCorrC
] = cov2corr(ExpCovariance
)
示例
输入参数
输出参量
ExpSigma
— 每个过程的标准差
向量
每个过程的标准差,返回为 1
× n
向量。
ExpCorrC
的条目范围从 1
(完全相关)到 -1
(完全反相关)。(i,j) 条目中的 0
值表示第 i 和第 j 次的过程不相关。
ExpSigma(i) = sqrt( ExpCovariance(i,i) ); ExpCorrC(i,j) = ExpCovariance(i,j)/( ExpSigma(i)*ExpSigma(j) );
数据类型: double
ExpCorrC
— 相关系数
矩阵
相关系数,返回为 n
× n
矩阵。
版本历史记录
在 R2006a 之前推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)