missing year in timetable

1 vue (au cours des 30 derniers jours)
Luca Re
Luca Re le 29 Fév 2024
Commenté : Luca Re le 1 Mar 2024
TR =
timetable timerange subscript:
Select timetable rows with times in the half-open interval:
[01-Dec-2020 00:00:00, 31-Dec-2023 00:00:00)
See Select Times in Timetable.
Y is timetable
5×1 timetable
Data Profit
__________ ______
2020-01-01 4075
2021-01-01 23420
2022-01-01 21292
2023-01-01 4725
2024-01-01 -887.5
prof_yearly=y(TR,:)
prof_yearly =
3×1 timetable
Data Profit
__________ ______
2021-01-01 23420
2022-01-01 21292
2023-01-01 4725
i don't see 2020-01-01 !!!

Réponse acceptée

Walter Roberson
Walter Roberson le 29 Fév 2024
The range starts 01-Dec-2020 which is after 2020-01-01
  5 commentaires
Walter Roberson
Walter Roberson le 1 Mar 2024
iniz = dateshift(Eq.Live.StartingDat, 'start', 'year');
Luca Re
Luca Re le 1 Mar 2024
thank

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by