필터 지우기
필터 지우기

how to smooth datetime type of array??

조회 수: 3 (최근 30일)
naadiya khudabux
naadiya khudabux 2016년 10월 1일
답변: Walter Roberson 2016년 10월 1일
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

채택된 답변

Walter Roberson
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개)

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by