datetime with certain number of rows
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a datetime array with 1000 rows.
I want to extend it to 1200 rows. The last 200 rows should be just a repetition of the last date.
How can I do this?
댓글 수: 2
Samuele Sandrini
2020년 4월 9일
편집: Samuele Sandrini
2020년 4월 9일
We can do like this (is a little example):
A=datetime('now') %i create a variable datetime
A(2:201,1)=A(end,1)
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Numeric Types에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!