how to count daily events from a time series data

12 visualizaciones (últimos 30 días)
BATAKRUSHNA SENAPATI
BATAKRUSHNA SENAPATI el 4 de Sept. de 2019
Respondida: Akira Agata el 20 de Sept. de 2019
i have a time series data contains year, month, day, hours, and earthquke . how will i count number of earthquake daily
  2 comentarios
Andrei Bobrov
Andrei Bobrov el 4 de Sept. de 2019
Editada: Andrei Bobrov el 4 de Sept. de 2019
Attach here small part your data as 'mat' file.
Reformat your data in timetable and use function retime.
BATAKRUSHNA SENAPATI
BATAKRUSHNA SENAPATI el 4 de Sept. de 2019
here i attach format of my data below

Iniciar sesión para comentar.

Respuesta aceptada

Akira Agata
Akira Agata el 20 de Sept. de 2019
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');

Más respuestas (1)

BATAKRUSHNA SENAPATI
BATAKRUSHNA SENAPATI el 20 de Sept. de 2019
here i attach my txt file below

Categorías

Más información sobre Seismology en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by