MATLAB: Correlation shows NaN values

correlationnan

Hi all,
I would like to calculate the correlation between two vectors (1*744) for each. but the correlation output gives a matrix (744*744) contains NaNs with no number in the matrix.
Any help will be appreciated.
thanks

Best Answer

Try corrcoef
corrcoef(A,B)