Correlation Coeff of matrices

1 回表示 (過去 30 日間)
Alex Flores
Alex Flores 2017 年 5 月 10 日
コメント済み: Alex Flores 2017 年 5 月 11 日
So I had to create 3 normal distribution matrices of size [1,1000]: x1=normrnd(0,1,[1,1000]) x2=normrnd(0,1,[1,1000]) x3= x1+x2 I made a scatterplot of x1 and x3 but now I have to find the correlation coefficients of x1 and x3. I tried doing corrcoef(x1) and corrcoef(x3) but I either get all 0's or all 1's. Are there different ways of calculating correlation coefficients of matrices?

回答 (1 件)

Santhana Raj
Santhana Raj 2017 年 5 月 11 日
corrcoef(x1,x3)
  1 件のコメント
Alex Flores
Alex Flores 2017 年 5 月 11 日
I did that but it doesn't seem like the right way to do it since i keep getting 0 as my answer

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by