From discrete dates to continuous dates (revised)
Show older comments
I have a timetable T like
city date visitors
-----------------------
NY January 1 2020 100
NY January 5 2020 40
NY January 12 2020 300
SF January 1 2020 70
SF January 6 2020 240
SF January 15 2020 30
I want to embed this in a larger table with continuous dates such as
city date visitors
-----------------------
NY January 1 2020 100
NY January 2 2020 NaN
NY January 3 2020 NaN
NY January 4 2020 Nan
NY January 5 2020 40
...
How can one do this?
3 Comments
alpedhuez
on 8 Dec 2020
the cyclist
on 8 Dec 2020
Can you upload the table you have in a MAT file, so that we don't have to guess at the date format?
Also, am I to understand that you do not want "2020" to appear in the added dates?
alpedhuez
on 8 Dec 2020
Accepted Answer
More Answers (0)
Categories
Find more on Reference Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!