want the avg_days of days(datetime format )using movmean

2 ビュー (過去 30 日間)
Muhammad
Muhammad 2021 年 5 月 26 日
コメント済み: Steven Lord 2021 年 5 月 27 日
t1 = datetime(2020,01,22)
t2 = datetime(2021,03,26)
days=t1:caldays(1):t2
through this code i made the datetime of size 1*430
now i want to find the avg_day using movmean but getting the error
Error using builtin
Invalid data type. First input must be numeric or logical.
Error in datetime/movmean (line 105)
y = builtin('_movmeandt', args{:});
Error in total (line 10)
y = movmean(days, hours(24), 'SamplePoints',t)
  1 件のコメント
Steven Lord
Steven Lord 2021 年 5 月 27 日
What is the average of yesterday and a week from tomorrow?

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

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by