I'm still unable to obtain 0 in ans in my corrcoef matrix that avoids NaN.
The best I was able is to do this:
corrcoef([1,2,3];[-1,2,1])
Can anyone provide me with any example that creates 0 instead of NaN ?
I have both, the difficulty to create 0 in my Ans and understand the reasons provided in @Adam Danz Answer.