フィルターのクリア

calculate sum month and annual

27 ビュー (過去 30 日間)
piero
piero 2023 年 8 月 12 日
編集済み: dpb 2023 年 8 月 15 日
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'

採用された回答

dpb
dpb 2023 年 8 月 12 日
編集済み: dpb 2023 年 8 月 12 日
Read up on retime and timetable which lead into readtable and table2timetable
All are "modern" MATLAB tools; the time-honored and original way would have been with accumarray
  9 件のコメント
piero
piero 2023 年 8 月 15 日
i'm using google translate :D
Image Analyst
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 件)

Image Analyst
Image Analyst 2023 年 8 月 12 日
Some functions for you to look at splitapply, findgroups, grpstats, groupsummary
  1 件のコメント
dpb
dpb 2023 年 8 月 12 日
To that list add rowfun. And, while at familiarizing, then varfun is closely related but for slightly different problem type.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCalendar についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by