Specify a format character vector in readtable
显示 更早的评论
I ran "readtable" and got a following warning. Please advise how to specify a format character vector in readtable. It was not clear from the documentation.
Warning: Successfully read the date/time text using the format 'MM/dd/uuuu', but
their format is ambiguous and could also be 'dd/MM/uuuu'. Specify a format
character vector to avoid ambiguity.
采纳的回答
更多回答(1 个)
dpb
2018-7-8
0 个投票
It's not as trivial as the error message makes it seem, granted...there's only the named parameter 'Format' available as input option readtable-Format which will require then specifying the format for every column in the input file, not just one for the datetime entry.
The alternative is to use the importoptions functions, or, if you're only doing this once or twice't for a given file, just use importool
类别
在 帮助中心 和 File Exchange 中查找有关 Time Series Events 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!