I have a file that contains special characters (ASCII codes 02 and 03) I would like to parse. The problem is I cannot find how to specify these characters in the textscan format string.
I can load the file with the following code:
data = textscan(fid,'%s','WhiteSpace',char(3),'EndOfLine','')
But I would like to include this character in the format string to directly parse data.
The format string I'd like to write could look like:
data = textscan(fid,'\x02%s\r\nR,%f,%f\r\nL,%f,%f\r\n\x03')
where \x02 and \x03 would specify ASCII codes 2 and 3.
Below is a snapshot of my file in Notepad++:
Thanks for your help.