Reputation: 3
I'm trying to import an excel file containing latitude and longitude data into MATLAB. I'm using the 'Import Data' option. It is reading the latitude and longitude information just fine except that some of the longitude cells are being marked as unimportable and being replaced by NaN
. They contain values like -119.253 etc. What could be the reason for this? I just want to keep the original information.
Below is a snapshot of a portion of my Excel spreadsheet:
Upvotes: 0
Views: 461
Reputation: 36710
The screenshot shows the Problem. All numbers that are left-alligned aren't real numbers, that is text. Numbers are alligned to the right.
Mark the column in excel and change the format to number.
Upvotes: 2