Assigning row names iteratively
显示 更早的评论
Hello, i have a [365, 24] table reporting values per hour for each day of the year.
How can I assign days names to all 365 rows ('Monday','Tuesday'...) without writing 365 names with 'RowNames'?
1 个评论
Stephen23
2023-12-4
There is only a small chance that some random year will start on a Monday.
To obtain the correct days of the week you should use DATETIME.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Tables 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!