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!