matlab求两组数据的误差,MATLAB 求两组数据相关性
摘要>> x=[13.2 13 14.9 8.2 7.9 25.3 16.0 16.3 7.5]; >> y=[23 24 21 20 21 39 30 32 9]; >> [R,
>> x=[13.2 13 14.9 8.2 7.9 25.3 16.0 16.3 7.5];
>> y=[23 24 21 20 21 39 30 32 9];
>> [R,P]=corrcoef(x,y)
R =
1.0000 0.8834
0.8834 1.0000
P =
1.0000 0.0016
0.0016 1.0000