Finding titles in a notepad file
Mostrar comentarios más antiguos
Hello everyone,
I have a large notepad file and I want to be able to type in a fault and find that fault in the file and display the time that it occured for every one of those faults.
This is a segment of data from the file:
I want to be able to type in RADAR_FAULT and find all radar faults and display the time of each one in a column of data labeled "time"
10/13/2010 - 11:13:53.03456 - RADAR_FAULT
10/13/2010 - 11:13:53.78990 - COMPUTER_INITIALIZED
10/13/2010 - 11:13:54.43567 - SONAR_FAULT
10/13/2010 - 11:13:55.19587 - TEMPERATURE_MEASUREMENT
10/13/2010 - 11:13:56.09851 - TEMPERATURE_MEASUREMENT
The end result would be a column of data labeled time (for example)
Time: 10/13/2010 - 11:13:53 10/13/2010 - 11:15:23 10/13/2010 - 11:27:46 10/13/2010 - 12:02:49 etc.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Text Data Preparation en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!