Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要两列之间的相关系数以及线性拟合和颜色条比例。
我想这是你的硬件,所以我会提供一个使用 Matlab 通用函数的解决方案。
>> x = sin(0:0.01:20); >> y = cos(0:0.01:20); >> R = corrcoef(x,y) R = 1.0000 0.0392 0.0392 1.0000 >> R = corrcoef(x,x) R = 1.0000 1.0000 1.0000 1.0000
我想下次你可能会表现出一些努力。