Finding titles in a notepad file
이전 댓글 표시
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Language Support에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!