how to smooth datetime type of array??
2 ビュー (過去 30 日間)
古いコメントを表示
i have request and response time od mobile users and want to calculate the elapsed time for that i need to smooth the the time.i have tried moving avg smoother its not working as it is Datetime
0 件のコメント
採用された回答
Walter Roberson
2016 年 10 月 1 日
Let D be your datetime array. Then
D_diff_dur = diff(D);
diff_days = datenum(D_diff);
smooth_diff_days = smooth(diff_days);
smooth_diff_dur = days(smooth_diff_days);
smoothed_D = D(1) + smooth_diff_dur;
This can all be combined into one expression.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Preprocessing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!