How can I run this problem

1 visualización (últimos 30 días)
Daphne Sagel Aguilar
Daphne Sagel Aguilar el 17 de Mzo. de 2021
Respondida: Omega el 2 de Ag. de 2024
Hello community, I need to read information from an event catalog, where: in one column I have the wave phases (EP, IP, ES, IS, IP, IP, ...) and in the next column the time of each phase according to the reading corresponding to the wave phase column. I need to be able to read the reading time according to the P and S phase; and thus be able to perform the operation to obtain the travel time by subtracting with the origin time of the event and obtain: the travel time of the P (TtP) and the travel time of the S (TtS) in a file written in columns for TtP and TtS. can you guide me please. Thanks in advance

Respuestas (1)

Omega
Omega el 2 de Ag. de 2024
Hi Daphne,
You can follow the steps mentioned below to perform your intended tasks:
  1. Use the "readtable" MATLAB Function to read the data from your event catalog file.
  2. To store the time data you can use the "Dates and Time" data types.
  3. You can leverage the utility functions to find the time difference from the origin time.
  4. To write the data into a file you can use the "writetable" MATLAB Function.
You can refer to the following documentation links to learn more:

Categorías

Más información sobre Data Import and Analysis 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