I am trying to read in a txt file which has a combination of hexadecimal data and text. I want to convert the hex to decimal except and then manipulate. Here is some sample data.

> 
> x 0:47950 0x---- 0x---- 001:00:07:56.633300 9-R-04-04 0x8000
>  0x0012 0x0000 0x0000
> 
> 
> x 0:136994 0x---- 0x---- 001:00:13:14.350422 8-R-05-04 0x8000
>  0x0012 0x0000 0x0000
> 
> 
> x 0:532637 0x---- 0x---- 001:00:40:29.861743 7-R-06-04 0x8000
>  0x0012 0x0000 0x0000
> 
> 
> 

The first four columns are kind of useless here ('x 0:47950 0x---- 0x----') but the timestamp, tag (9-R-04-04), and hex are what I want to look at. Any help on how to get Matlab to read this data in and convert the hex to decimal would be greatly appreciated.