www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/CorrelationCoefficientsOfTwoRandomVariablesExample.m
%% Two Random Variables % Compute the correlation coefficient matrix between two % normally distributed, random vectors of 10 observations each. % Copyright 2015 The MathWorks, Inc. A = randn(10,1); B = randn(10,1); R = corrcoef(A,B)