datetime with certain number of rows
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Samuele Sandrini
il 9 Apr 2020
Modificato: Samuele Sandrini
il 9 Apr 2020
We can do like this (is a little example):
A=datetime('now') %i create a variable datetime
A(2:201,1)=A(end,1)
Risposte (0)
Vedere anche
Categorie
Scopri di più su Dates and Time in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!