Hi,
I have a text file of the following format:
00:56 UserA
02:00 UserB
01:10 UserC
The first column is in HH:MM.
I would like to convert the first column to a numeric matrix which should contain numeric values in minutes, i.e.
[56; 120; 70]
The second column should be a cell array of strings.
I could do this totally manually, e.g. perform string manipulation one line at a time and extract this info (using textscan). But are there any built in functions to perform this?
Thanks! Sandy
Best Answer