Why does "readtable" improperly read Excel data with "N/A" values, row names, and headers?
Show older comments
I am trying to read my Excel table, which includes headers, row names, and numeric data, into MATLAB. However, when I use the "readtable" function, my data is imported incorrectly. Here are the specific issues I'm encountering:
- The data are all cells of character vectors instead of doubles.
- Missing data is labeled as "N/A" in Excel. I want these values to show up as NaNs in MATLAB.
- My Excel table has column and row names that I want to be imported, as well.
Accepted Answer
More Answers (0)
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!