readtable function in 2020a not functioning the same as older versions?
显示 更早的评论
The old version of readtable (2018b) that i am using is able to import text as part of the table and the 2020a version my coworker is using seems to only import numerical data and ignore any information you provide about the number of headerlines. We need to import the text and numerical data from a .csv file and readtable was the only way to do this, its going to be a problem if the code will work differently depending on what version of matlab the users have, does anyone have any suggestions or know why the new version is unable to import the text?
3 个评论
Walter Roberson
2020-8-13
Compatibility notes are at https://www.mathworks.com/help/matlab/ref/readtable.html#mw_19d8ece8-5151-47f4-8ff2-8e0fa633db25
Amy Wolff
2020-8-15
Ornit
2022-8-19
Thanks! Worked for me too.
回答(1 个)
Cris LaPierre
2020-8-13
编辑:Cris LaPierre
2020-8-13
0 个投票
My experience is that readtable is able to read in more types of data automatically in 2020a than in 2018b. Could you share more details about the formatting of the csv file? Even better, can you share the file and your code?
类别
在 帮助中心 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!