I have problem with using 'corr' function in MATLAB,
a =
1 4 3 2
2 3 3 2
3 2 3 2
4 1 3 2
>> corr(a)
ans =
1 -1 NaN NaN
-1 1 NaN NaN
NaN NaN NaN NaN
NaN NaN NaN NaN
When I calculate manually, the Missing Value (NaN) is because the denominator is ZERO (0). Although, we can be see that similarity of column 3 and 4 is ONE (+1).
Anyone know how to enhance or replace the missing value?
Thank's Before.