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일

0 개 추천

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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

질문:

2017년 5월 10일

댓글:

2017년 5월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by