You are on page 1of 1

5 4 0 2 2

5 0 4 2 0
2 0 1 3 4
0 0 0 4 0
1 0 0 4 0
0 2 1 0 0
0 0 1 4 5

import numpy as np
xyz = np.array([[5, 4, 0, 2, 2],
[5, 0, 4, 2, 0],
[2, 0, 1, 3, 4],
[0, 0, 0, 4, 0],
[1, 0, 0, 4, 0],
[0, 2, 1, 0, 0],
[0, 0, 1, 4, 5]])
x=np.corrcoef(xyz)
print(x)

You might also like