error when using datetime()
17 次查看(过去 30 天)
显示 更早的评论
I am trying to read some data file and then use datetime() to represent the datetime objects, the file looks like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/768266/image.png)
the issue is the Day column is seperated whth ',' from the Sflux column in the data file which resulting in an error when using datetime(). how can I fix this?
the error I am getting
Error using datetime (line 547)
Invalid parameter name. Parameter name must be a nonempty string or character vector.
Error in cateogorizing (line 49)
S.date = datetime(S.Year, S.Month, S.Day,0,0,0,'Format', 'uuuuMMddHHmm');
Thanks in adavence,
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!