calculate sum month and annual
4 次查看(过去 30 天)
显示 更早的评论
hi, i want to calculate profit month and annual
T1 is a vector with date from 1/1/2008 to 05/08/2023 (last rilevation)
T2 is a vector with profit
i need to calculare sum of month (gen 2008..feb 2008..) and annual (2008-2009-2010 ....)
class(pT2)
double
class(T1)
ans =
'datetime'
0 个评论
采纳的回答
dpb
2023-8-12
编辑:dpb
2023-8-12
All are "modern" MATLAB tools; the time-honored and original way would have been with accumarray
9 个评论
Image Analyst
2023-8-15
It's weird that Google translate does not know that "i" and "i'm" should always be capitalized in English. And they should always capitalize their name, as with all proper names, and the first letter of each sentence.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calendar 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!