How to extract the time differences between two events into a table?
이전 댓글 표시
'message' contains the event name, 'time' is the timestamp for each event, and 'reltime' is the relative time of each event to the trial start.
I want to find the time lag between each ‘1002‘ and each 'ENDSACC' .
Here is an example:

For the first '1002', its time lag : 'ENDSACC'(3) (72-942= -870) 'ENDSACC'(7) (581-942= -361) 'ENDSACC'(14) (1032-942= 90).
Only the number is important so the ideal result would be like;
1002 -870 -361 90
How can I achieve such results, thank you very much.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 String Parsing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!