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!