cmo, you are correct, thank you for finding this bug. I will make a note to have it fixed. For the time being, you can read in the file with ReadRowNames set to false, and then assign the row names and delete the string variable.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/243657-readtable-bug-if-file-has-only-one-line-then-readtable-throws-error-only-if-readrownames-1#comment_310784
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/243657-readtable-bug-if-file-has-only-one-line-then-readtable-throws-error-only-if-readrownames-1#comment_310784
Sign in to comment.