how to count daily events from a time series data

9 次查看(过去 30 天)
i have a time series data contains year, month, day, hours, and earthquke . how will i count number of earthquake daily
  2 个评论
Andrei Bobrov
Andrei Bobrov 2019-9-4
编辑:Andrei Bobrov 2019-9-4
Attach here small part your data as 'mat' file.
Reformat your data in timetable and use function retime.

请先登录,再进行评论。

采纳的回答

Akira Agata
Akira Agata 2019-9-20
How about the following?
% Read your text data file
T = readtable('test.txt');
% Create datetime vector
Time = datetime(T.year,T.month,T.day,T.hrs,T.mins,T.sec);
% Calculate daily counts
TT = timetable(Time,ones(size(Time)),'VariableNames',{'Count'});
TT = retime(TT,'daily','sum');

更多回答(1 个)

BATAKRUSHNA SENAPATI
here i attach my txt file below

类别

Help CenterFile Exchange 中查找有关 Seismology 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by