How can i create an array with datetime values as one column and integers as one column?
3 次查看(过去 30 天)
显示 更早的评论
I always get the following error: "All inputs must be datetimes or date/time character vectors or date/time strings".
0 个评论
采纳的回答
Peng Li
2020-3-28
you can use table instead of an array.
table can have columns with different types.
e.g.,
a = yourDatetime;
b = yourInteger;
c = table(a, b);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!