title: MATLAB giving me NAN values, can't figure out why
body: <p>I'm sure whatever the problem here is pretty simple, but I cannot figure it out at all.</p>
  
  <p>I have a very simple data file. It is a .csv file with a column of labels, and a column of values associated with each label. I am trying to do some simple operations involving the vector, but MATLAB keeps giving me NaN values.</p>
  
  <p>Even if I just do <code>mean(vector)</code> I get an NaN!</p>
  
  <p>I can't figure out why. There are NO NaN values in the vector. It is all numeric. I typed the command <code>isnumeric(vector)</code> and got a value of 1. I used a for loop to cycle through every value in the vector, and all of them are numeric. </p>
  
  <p>I have copied all of the data into a new csv file and tried that. Still just gives me NaN.</p>
  
  <p>I cannot at all figure out what is going on here. I have no problems doing the same with other vectors. The problem is MATLAB won't tell me WHERE or WHAT the problem is, it only gives me NaN.</p>
  
  <p>Any theories on what is going on, here? Or any idea of some way to check the vector to see what MATLAB is having trouble reading?</p>
  
  <p>I am using Matlab R2008a, on a Mac.</p>