Read hex strings from text file into struct

Hey,
For a project I have the following text file: https://gofile.io/d/prmMwj
The text file consist of heximal data of different frames, that is on the different lines
I want to read in the information on the lines that have the data, for this I found the textscan function.
I am able to split the data into the differrnet heximal information, however I am not able to split the data for the different lines.
So how do I split up the data with respect to different lines and only save the heximal data and not the '+------+' stuff?
Thanks!

8 comentarios

Mario Malic
Mario Malic el 8 de Ag. de 2020
I always prefer to work with cells, read the file, save it in cells and delete particular rows which are the newlines and information about time etc. Then if possible, apply regexp as a cellfun for the rows that remain.
Bram Surewaard
Bram Surewaard el 8 de Ag. de 2020
And what function could I use the best for reading the file and saving it in cells?
Bram Surewaard
Bram Surewaard el 8 de Ag. de 2020
Thanks!
I am now trying to remove the unwanted rows, only can't seem to make it work.
The rows that I want are: 3:4:length(File_data)
However how do I define the unwanted rows now?
Bram Surewaard
Bram Surewaard el 8 de Ag. de 2020
And if I only select a few rows (row 3 7 and 11) to test the rest of the programm I get an error with the last line of code:
Error using cellfun
Non-scalar in Uniform output, at index 1, output 1.
Set 'UniformOutput' to false.
Error in Loadtextfile (line 21)
Data_Ready = cellfun(@str2num,File_Data_Split);
If I then set the UniformOutput to false the resulting Data_Ready cell is an 3x2 cell array with only [] in it.
Do you know how I can fix this?
Mario Malic
Mario Malic el 8 de Ag. de 2020
Editada: Mario Malic el 8 de Ag. de 2020
Did you manage to get your data into File_Data variable?
I assume you managed to remove the rows you don't need, if not, then you can generate number array 1:1:length(FIle_Data) and then somehow get the opposite from what you need. Maybe you can check other questions for this.
After that, you need to apply regexp to each remaining cell removing the '|'.
% you don't need these two lines in your code
File_Data_Split = split(File_Data(1:length(File_Data))); % This won't work on your file since you don't have spaces in line
Data_Ready = cellfun(@str2num,File_Data_Split); % Since above won't work, this won't either
Bram Surewaard
Bram Surewaard el 8 de Ag. de 2020
Thanks for you help! I am now able to get it in the right cell format, only the whole process is pretty slow compared to when i use textscan on the whole file, is there a way to speed it up that i know of?
Mario Malic
Mario Malic el 8 de Ag. de 2020
Editada: Mario Malic el 8 de Ag. de 2020
Did you manage to process the whole file with textscan?
It's a 50 MB file, so that might be a reason it takes some time.
You can try doing a textscan in for loop from the File_Data as you did before.
You can check the examples on textscan https://ch.mathworks.com/help/matlab/ref/textscan.html#btghhyz-5 how to skip some text etc.

Iniciar sesión para comentar.

 Respuesta aceptada

dpb
dpb el 8 de Ag. de 2020
It's pretty quick to read and separate out the data by
fid=fopen('data.txt');
s=textscan(fid,'%s','delimiter','\n','whitespace','');
s=s{:}(3:4:end);
>> s(1:10)
ans =
10×1 cell array
{'|0 |54|b2|03|02|a3|1b|00|50|c2|90|40|ce|08|00|45|00|05|dc|25|29|20|00|32|11|28|2d|0a|00|00|56|0a|00|01|66|ff|dc|ff|dc|07|50|00|00|42|54|48|30|00|00|07|48|00|00|00|00|48|30|00|74|32|30|32|32|00|00|00|00|00|00|00|00|31|30|30|31|36|36|00|00|00|00|00|00|00|00|04|69|00|22|5d|9d|00|01|06|e1|3c|88|88|80|44|bb|80|00|48|92|7c|00|43|3f|00|00|37|7b|a8|82|3c|8e|fa|36|3c|0e|fa|36|00|00|00|00|00|00|00|00|00|00|d9|54|47|6a|60|00|47|7f|00|01|40|40|00|00|42|34|00|00|41|f0|00|00|42|b2|00|00|00|00|00|00|00|00|00|06|00|06|01|00|52|30|02|08|36|80|80|80|02|ba|02|ba|02|ba|02|ba|02|bb|02|bb|02|b4|02|b5|02|b5|02|b6|02|b6|02|b7|02|b7|02|b7|02|b1|02|b1|02|b2|02|b2|02|b3|02|b3|02|b4|02|b5|02|ad|02|ad|02|ad|02|ad|02|ad|02|ad|02|ac|02|ac|02|ab|02|a4|02|a5|02|a7|02|a7|02|a7|02|a7|02|a8|02|a8|02|a8|02|82|02|82|02|82|02|82|02|82|02|81|02|81|02|81|02|a5|02|a6|02|a7|02|80|02|69|02|69|02|69|02|69|02|69|02|6a|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|01|e0|01|e1|01|ee|01|ee|01|ef|01|ef|01|ee|01|eb|01|eb|01|ea|01|ea|01|e9|01|df|01|de|01|de|01|f1|01|f1|01|f1|01|f1|01|f1|01|f2|01|f2|01|f2|01|f2|01|f1|02|96|02|96|02|96|02|96|02|96|02|96|02|96|02|95|02|5c|02|5c|02|5c|02|5c|02|5c|01|ff|01|ff|01|ff|01|ff|01|ff|01|fe|01|fe|01|fe|02|90|02|90|02|90|02|91|02|91|02|91|02|91|02|92|02|93|02|93|02|94|02|95|02|95|02|96|02|96|02|97|02|97|02|97|02|97|02|97|02|97|02|97|02|96|02|95|02|94|02|93|02|92|02|91|02|90|02|8f|02|8f|02|8f|02|8e|02|8e|02|8e|02|8e|02|8e|02|8e|02|7f|02|7f|02|7f|02|7e|02|7e|02|5f|02|5f|02|60|02|60|02|60|02|60|02|5f|02|5f|02|5f|02|5f|02|5f|02|5e|02|5e|02|4d|02|4d|02|4d|02|4d|02|4d|02|4d|02|4d|02|4d|02|4d|02|4e|02|4e|02|9e|02|9d|02|9d|02|9c|02|9c|02|9c|02|9c|02|9b|02|9b|02|9b|02|9b|02|9a|02|9a|02|99|02|a0|02|9f|02|9e|00|00|00|00|00|00|00|00|00|00|02|8a|02|89|02|89|02|89|02|7c|02|4a|02|4a|02|4a|02|4a|02|4a|02|48|02|94|02|94|02|a1|02|9b|02|a7|02|a7|02|a6|02|a6|02|a6|02|a7|02|a7|02|a4|02|3d|02|aa|02|aa|02|aa|02|aa|02|a9|02|a9|02|a8|02|a8|02|a7|02|ad|02|ad|02|ac|02|ac|02|ab|02|ab|02|aa|02|92|02|53|02|54|02|54|02|54|02|54|02|54|02|53|02|53|02|52|02|51|02|98|02|99|02|99|02|49|41|32|02|24|be|a0|38|a3|34|02|9f|f8|00|00|00|00|3d|f3|b6|46|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|49|d1|49|ed|4a|0a|4a|24|4a|41|4a|5c|4a|77|4a|92|4a|ad|4a|c7|4a|e3|4a|fd|4b|17|4b|31|4b|4b|4b|65|4b|7f|4b|99|4b|b1|4b|cb|4b|e4|4b|fd|4c|16|4c|2e|4c|46|4c|5f|4c|76|4c|8e|4c|a6|4c|bd|4c|d5|4c|ec|4d|02|4d|1a|4d|2f|4d|47|4d|5c|4d|72|4d|88|4d|9d|4d|b3|4d|c8|4d|dd|4d|f2|4e|06|4e|1b|4e|2f|4e|42|4e|57|4e|69|4e|7e|4e|90|4e|a3|4e|b6|4e|c8|4e|db|4e|ec|4e|ff|4f|0f|4f|22|4f|32|4f|43|4f|54|4f|64|4f|75|4f|85|4f|94|4f|a4|4f|b3|4f|c2|4f|d0|4f|e0|4f|ee|4f|fb|50|0a|50|18|50|24|50|32|50|3f|50|4c|50|57|50|64|50|70|50|7c|50|87|50|92|50|9d|50|a8|50|b2|50|bc|50|c6|50|d0|50|d9|50|e2|50|eb|50|f4|50|fc|51|04|51|0d|51|13|51|1b|51|22|51|29|51|2f|51|36|51|3c|51|41|51|47|51|4c|51|51|51|55|51|5b|51|5e|51|62|51|66|51|69|51|6c|51|6f|51|72|51|74|51|75|51|78|51|79|51|7a|51|7c|51|7b|51|7d|51|7c|51|7c|51|7c|51|7c|51|7a|51|79|51|77|51|76|51|74|51|72|51|6f|51|6c|51|69|51|66|51|62|51|5e|51|5a|51|56|51|51|51|4c|51|47|51|41|51|3c|51|35|51|30|51|29|51|22|51|1b|51|13|51|0c|51|04|50|fd|50|f3|50|ec|50|e2|50|d9|50|d0|50|c6|50|bc|50|b2|50|a8|50|9d|50|92|50|87|50|7b|50|70|50|64|50|58|50|4b|50|3f|50|32|50|25|50|18|50|09|4f|fc|4f|ee|4f|df|4f|d1|4f|c2|4f|b3|4f|a4|4f|94|4f|85|4f|74|4f|64|4f|54|4f|43|4f|33|4f|21|4f|10|4e|fe|4e|ed|4e|da|4e|c8|4e|b6|4e|a3|4e|91|4e|7d|4e|6a|4e|57|4e|42|4e|2f|4e|1a|4e|07|4d|f1|4d|dd|4d|c8|4d|b3|4d|9d|4d|88|4d|73|4d|5c|4d|46|4d|30|4d|19|4d|03|4c|ec|4c|d4|4c|bd|4c|a6|4c|8f|4c|76|4c|5f|4c|46|4c|2e|4c|15|4b|fd|4b|e4|4b|cb|4b|b1|4b|99|4b|7f|4b|65|4b|4b|4b|31|4b|18|4a|fc|4a|e3|4a|c8|4a|ad|4a|91|4a|77|4a|5c|4a|41|4a|24|4a|0a|49|ed|49|d2|49|31|02|08|3f|80|00|00|06|b6|07|0c|07|77|07|fa|08|95|09|38|06|5a|06|ab|07|57|07|ca|08|67|09|1d|09|d2|0a|9f|08|04|08|8e|09|1d|09|a3|0a|2f|0a|c1|0b|48|0b|c5|07|23|07|44|07|41|07|2f|07|12|06|f7|06|8a|06|ac|06|d1|05|6e|05|f8|06|91|07|1f|07|9e|08|03|08|46|08|60|08|4d|06|ca|06|e4|06|e7|06|d9|06|b3|06|7d|06|3b|05|f1|06|03|06|95|07|28|05|3f|05|98|05|bc|05|d8|05|d2|05|e5|05|f1|05|38|05|57|05|7c|05|97|05|99|05|88|05|69|05|43|05|37|05|4e|05|f0|06|1c|06|2b|06|44|06|5d|06|38|06|11|06|1b|06|25|06|3b|06|82|06|88|06|7a|05|d1|05|b7|05|be|05|a7|05|8a|05|8c|05|82|05|7b|05|80|05|82|05|98|05|9e|05|9a|05|99|05|79|05|33|05|03|05|31|06|35|06|2f|06|12|05|e6|05|b6|06|1e|06|4d|06|51|06|46|06|2e|06|0c|05|dc|05|a3|05|c1|06|1a|06|60|06|9c|06|cf|06|fc|06|78|06|cc|07|49|07|d9|08|8b|09|3d|09|df|0a|6c|0b|95|0b|de|0c|04|0c|73|0c|39|0a|a5|0a|1c|09|90|'}
{'|0 |54|b2|03|02|a3|1b|00|50|c2|90|40|ce|08|00|45|00|01|9c|25|29|00|b9|32|11|4b|b4|0a|00|00|56|0a|00|01|66|09|06|08|71|07|a7|06|e6|06|4f|05|f5|06|98|06|a2|06|cb|07|07|07|46|07|88|07|b8|07|d2|07|ce|07|ba|06|5f|06|53|06|43|06|28|05|ff|06|13|06|68|06|b5|06|f1|07|21|07|4c|07|61|07|65|07|58|07|27|07|07|07|03|06|c9|06|d1|06|f9|07|13|07|1e|07|19|07|0b|06|e7|06|b5|06|79|06|44|06|10|06|2a|06|0b|06|11|06|25|06|49|06|53|06|55|06|3b|06|1f|05|f2|05|b2|05|67|05|0d|04|ab|05|a5|05|27|04|b7|05|00|05|39|05|66|05|50|05|5e|05|06|05|12|05|10|05|04|05|2e|05|0d|05|32|05|46|05|74|05|93|05|6e|04|7f|04|a3|04|c6|04|ab|05|b1|05|95|05|65|05|49|05|13|04|f2|04|e6|04|cd|05|48|05|c7|05|e5|05|ea|05|e4|05|e0|05|d6|05|c0|05|97|05|64|06|11|05|b3|05|4f|04|eb|04|8b|04|33|03|e4|03|d9|03|84|03|8e|03|9d|03|b5|03|c7|03|d8|03|e9|03|f7|04|0c|04|0c|04|58|04|80|04|71|04|d9|47|30|00|10|3a|f1|2c|28|3b|2d|03|da|80|00|00|00|51|30|00|84|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|00|00|00|00|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|00|00|07|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|' }
{'|0 |54|b2|03|02|a3|1b|00|50|c2|90|40|ce|08|00|45|00|05|dc|25|2a|20|00|32|11|28|2c|0a|00|00|56|0a|00|01|66|ff|dc|0f|a0|07|50|00|00|42|54|48|30|00|00|07|48|00|00|00|00|48|30|00|74|32|30|32|32|00|00|00|00|00|00|00|00|31|30|30|31|36|36|00|00|00|00|00|00|00|00|04|69|00|22|5d|9d|00|01|06|e1|3c|88|88|80|44|bb|80|00|48|92|7c|00|43|3f|00|00|37|7b|a8|82|3c|8e|fa|36|3c|0e|fa|36|00|00|00|00|00|00|00|00|00|00|d9|54|47|6a|60|00|47|7f|00|01|40|40|00|00|42|34|00|00|41|f0|00|00|42|b2|00|00|00|00|00|00|00|00|00|06|00|06|01|00|52|30|02|08|36|80|80|80|02|ba|02|ba|02|ba|02|ba|02|bb|02|bb|02|b4|02|b5|02|b5|02|b6|02|b6|02|b7|02|b7|02|b7|02|b1|02|b1|02|b2|02|b2|02|b3|02|b3|02|b4|02|b5|02|ad|02|ad|02|ad|02|ad|02|ad|02|ad|02|ac|02|ac|02|ab|02|a4|02|a5|02|a7|02|a7|02|a7|02|a7|02|a8|02|a8|02|a8|02|82|02|82|02|82|02|82|02|82|02|81|02|81|02|81|02|a5|02|a6|02|a7|02|80|02|69|02|69|02|69|02|69|02|69|02|6a|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|01|e0|01|e1|01|ee|01|ee|01|ef|01|ef|01|ee|01|eb|01|eb|01|ea|01|ea|01|e9|01|df|01|de|01|de|01|f1|01|f1|01|f1|01|f1|01|f1|01|f2|01|f2|01|f2|01|f2|01|f1|02|96|02|96|02|96|02|96|02|96|02|96|02|96|02|95|02|5c|02|5c|02|5c|02|5c|02|5c|01|ff|01|ff|01|ff|01|ff|01|ff|01|fe|01|fe|01|fe|02|90|02|90|02|90|02|91|02|91|02|91|02|91|02|92|02|93|02|93|02|94|02|95|02|95|02|96|02|96|02|97|02|97|02|97|02|97|02|97|02|97|02|97|02|96|02|95|02|94|02|93|02|92|02|91|02|90|02|8f|02|8f|02|8f|02|8e|02|8e|02|8e|02|8e|02|8e|02|8e|02|7f|02|7f|02|7f|02|7e|02|7e|02|5f|02|5f|02|60|02|60|02|60|02|60|02|5f|02|5f|02|5f|02|5f|02|5f|02|5e|02|5e|02|4d|02|4d|02|4d|02|4d|02|4d|02|4d|02|4d|02|4d|02|4d|02|4e|02|4e|02|9e|02|9d|02|9d|02|9c|02|9c|02|9c|02|9c|02|9b|02|9b|02|9b|02|9b|02|9a|02|9a|02|99|02|a0|02|9f|02|9e|00|00|00|00|00|00|00|00|00|00|02|8a|02|89|02|89|02|89|02|7c|02|4a|02|4a|02|4a|02|4a|02|4a|02|48|02|94|02|94|02|a1|02|9b|02|a7|02|a7|02|a6|02|a6|02|a6|02|a7|02|a7|02|a4|02|3d|02|aa|02|aa|02|aa|02|aa|02|a9|02|a9|02|a8|02|a8|02|a7|02|ad|02|ad|02|ac|02|ac|02|ab|02|ab|02|aa|02|92|02|53|02|54|02|54|02|54|02|54|02|54|02|53|02|53|02|52|02|51|02|98|02|99|02|99|02|49|41|32|02|24|be|a0|38|a3|34|02|9f|f8|00|00|00|00|3d|f3|b6|46|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|49|d1|49|ed|4a|0a|4a|24|4a|41|4a|5c|4a|77|4a|92|4a|ad|4a|c7|4a|e3|4a|fd|4b|17|4b|31|4b|4b|4b|65|4b|7f|4b|99|4b|b1|4b|cb|4b|e4|4b|fd|4c|16|4c|2e|4c|46|4c|5f|4c|76|4c|8e|4c|a6|4c|bd|4c|d5|4c|ec|4d|02|4d|1a|4d|2f|4d|47|4d|5c|4d|72|4d|88|4d|9d|4d|b3|4d|c8|4d|dd|4d|f2|4e|06|4e|1b|4e|2f|4e|42|4e|57|4e|69|4e|7e|4e|90|4e|a3|4e|b6|4e|c8|4e|db|4e|ec|4e|ff|4f|0f|4f|22|4f|32|4f|43|4f|54|4f|64|4f|75|4f|85|4f|94|4f|a4|4f|b3|4f|c2|4f|d0|4f|e0|4f|ee|4f|fb|50|0a|50|18|50|24|50|32|50|3f|50|4c|50|57|50|64|50|70|50|7c|50|87|50|92|50|9d|50|a8|50|b2|50|bc|50|c6|50|d0|50|d9|50|e2|50|eb|50|f4|50|fc|51|04|51|0d|51|13|51|1b|51|22|51|29|51|2f|51|36|51|3c|51|41|51|47|51|4c|51|51|51|55|51|5b|51|5e|51|62|51|66|51|69|51|6c|51|6f|51|72|51|74|51|75|51|78|51|79|51|7a|51|7c|51|7b|51|7d|51|7c|51|7c|51|7c|51|7c|51|7a|51|79|51|77|51|76|51|74|51|72|51|6f|51|6c|51|69|51|66|51|62|51|5e|51|5a|51|56|51|51|51|4c|51|47|51|41|51|3c|51|35|51|30|51|29|51|22|51|1b|51|13|51|0c|51|04|50|fd|50|f3|50|ec|50|e2|50|d9|50|d0|50|c6|50|bc|50|b2|50|a8|50|9d|50|92|50|87|50|7b|50|70|50|64|50|58|50|4b|50|3f|50|32|50|25|50|18|50|09|4f|fc|4f|ee|4f|df|4f|d1|4f|c2|4f|b3|4f|a4|4f|94|4f|85|4f|74|4f|64|4f|54|4f|43|4f|33|4f|21|4f|10|4e|fe|4e|ed|4e|da|4e|c8|4e|b6|4e|a3|4e|91|4e|7d|4e|6a|4e|57|4e|42|4e|2f|4e|1a|4e|07|4d|f1|4d|dd|4d|c8|4d|b3|4d|9d|4d|88|4d|73|4d|5c|4d|46|4d|30|4d|19|4d|03|4c|ec|4c|d4|4c|bd|4c|a6|4c|8f|4c|76|4c|5f|4c|46|4c|2e|4c|15|4b|fd|4b|e4|4b|cb|4b|b1|4b|99|4b|7f|4b|65|4b|4b|4b|31|4b|18|4a|fc|4a|e3|4a|c8|4a|ad|4a|91|4a|77|4a|5c|4a|41|4a|24|4a|0a|49|ed|49|d2|49|31|02|08|3f|80|00|00|06|b6|07|0c|07|77|07|fa|08|95|09|38|06|5a|06|ab|07|57|07|ca|08|67|09|1d|09|d2|0a|9f|08|04|08|8e|09|1d|09|a3|0a|2f|0a|c1|0b|48|0b|c5|07|23|07|44|07|41|07|2f|07|12|06|f7|06|8a|06|ac|06|d1|05|6e|05|f8|06|91|07|1f|07|9e|08|03|08|46|08|60|08|4d|06|ca|06|e4|06|e7|06|d9|06|b3|06|7d|06|3b|05|f1|06|03|06|95|07|28|05|3f|05|98|05|bc|05|d8|05|d2|05|e5|05|f1|05|38|05|57|05|7c|05|97|05|99|05|88|05|69|05|43|05|37|05|4e|05|f0|06|1c|06|2b|06|44|06|5d|06|38|06|11|06|1b|06|25|06|3b|06|82|06|88|06|7a|05|d1|05|b7|05|be|05|a7|05|8a|05|8c|05|82|05|7b|05|80|05|82|05|98|05|9e|05|9a|05|99|05|79|05|33|05|03|05|31|06|35|06|2f|06|12|05|e6|05|b6|06|1e|06|4d|06|51|06|46|06|2e|06|0c|05|dc|05|a3|05|c1|06|1a|06|60|06|9c|06|cf|06|fc|06|78|06|cc|07|49|07|d9|08|8b|09|3d|09|df|0a|6c|0b|95|0b|de|0c|04|0c|73|0c|39|0a|a5|0a|1c|09|90|'}
{'|0 |54|b2|03|02|a3|1b|00|50|c2|90|40|ce|08|00|45|00|01|9c|25|2a|00|b9|32|11|4b|b3|0a|00|00|56|0a|00|01|66|09|06|08|71|07|a7|06|e6|06|4f|05|f5|06|98|06|a2|06|cb|07|07|07|46|07|88|07|b8|07|d2|07|ce|07|ba|06|5f|06|53|06|43|06|28|05|ff|06|13|06|68|06|b5|06|f1|07|21|07|4c|07|61|07|65|07|58|07|27|07|07|07|03|06|c9|06|d1|06|f9|07|13|07|1e|07|19|07|0b|06|e7|06|b5|06|79|06|44|06|10|06|2a|06|0b|06|11|06|25|06|49|06|53|06|55|06|3b|06|1f|05|f2|05|b2|05|67|05|0d|04|ab|05|a5|05|27|04|b7|05|00|05|39|05|66|05|50|05|5e|05|06|05|12|05|10|05|04|05|2e|05|0d|05|32|05|46|05|74|05|93|05|6e|04|7f|04|a3|04|c6|04|ab|05|b1|05|95|05|65|05|49|05|13|04|f2|04|e6|04|cd|05|48|05|c7|05|e5|05|ea|05|e4|05|e0|05|d6|05|c0|05|97|05|64|06|11|05|b3|05|4f|04|eb|04|8b|04|33|03|e4|03|d9|03|84|03|8e|03|9d|03|b5|03|c7|03|d8|03|e9|03|f7|04|0c|04|0c|04|58|04|80|04|71|04|d9|47|30|00|10|3a|f1|2c|28|3b|2d|03|da|80|00|00|00|51|30|00|84|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|00|00|00|00|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|00|00|07|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|' }
{'|0 |54|b2|03|02|a3|1b|00|50|c2|90|40|ce|08|00|45|00|05|dc|25|2c|20|00|32|11|28|2a|0a|00|00|56|0a|00|01|66|ff|dc|ff|dc|07|50|00|00|42|54|48|30|00|00|07|48|00|00|00|00|48|30|00|74|32|30|32|32|00|00|00|00|00|00|00|00|31|30|30|31|36|36|00|00|00|00|00|00|00|00|04|69|01|20|ad|cb|00|01|06|e2|3c|88|88|8a|44|bb|80|00|48|92|7c|00|43|3f|00|00|37|7b|a8|82|3c|8e|fa|36|3c|0e|fa|36|00|00|00|00|00|00|00|00|00|00|d9|54|47|6a|60|00|47|7f|00|01|40|40|00|00|42|34|00|00|41|f0|00|00|42|b2|00|00|00|00|00|00|00|00|00|06|00|06|01|00|52|30|02|08|36|80|80|80|02|b7|02|b8|02|b8|02|b8|02|b9|02|b9|02|3d|02|3d|02|3d|02|b4|02|b4|02|b4|02|b5|02|b5|02|b0|02|b0|02|b1|02|b1|02|b2|02|b2|02|b2|02|b3|02|ac|02|ac|02|ad|02|ad|02|ad|02|ad|02|ad|02|ad|02|ae|02|a7|02|a8|02|ab|02|ac|02|ac|02|ac|02|ac|02|ac|02|ac|00|00|00|00|00|00|00|00|00|00|00|00|00|00|02|3c|02|a5|02|a6|02|a6|00|00|00|00|00|00|00|00|00|00|02|9c|02|9d|02|9d|02|9d|02|9e|02|9e|02|9f|00|00|00|00|01|ee|01|ee|01|ee|01|ef|01|f1|02|99|02|99|02|99|02|99|02|9a|02|99|02|99|02|98|01|e2|01|e2|01|e2|01|e1|01|e1|01|e0|02|8f|02|8f|02|8f|02|8f|02|8f|02|8f|02|94|02|94|02|94|02|94|02|93|02|93|02|93|02|92|02|92|02|92|02|6d|02|6d|02|6c|01|fe|01|fe|01|fe|01|ff|01|ff|01|ff|01|ff|01|ff|01|ff|02|8e|02|8f|02|90|02|90|02|91|02|92|02|92|02|93|02|93|02|93|02|94|02|94|02|94|02|95|02|95|02|95|02|95|02|95|02|95|02|95|02|95|02|95|02|95|02|94|02|94|02|93|02|93|02|92|02|91|02|90|02|8f|02|8e|02|8d|02|8d|02|8c|02|8b|02|70|02|70|02|70|02|70|02|70|02|70|02|5f|02|5f|02|5f|02|5f|02|5f|02|5f|02|5f|02|60|02|60|02|60|02|60|02|60|02|61|02|66|02|67|02|67|02|68|02|68|02|68|02|68|02|87|02|86|02|86|02|86|02|9d|02|9d|02|9d|02|9d|02|9d|02|9c|02|9c|02|9c|02|9b|02|9b|02|9b|02|9a|02|9a|02|9a|02|9a|02|a0|02|a0|02|9f|02|9e|02|9d|02|9b|02|8d|02|8d|02|8c|02|87|02|87|02|87|02|87|02|87|02|87|02|87|02|9c|02|9c|02|9c|02|9c|02|9c|02|9c|02|9c|02|a5|02|a5|02|a5|02|a5|02|a5|02|a5|02|a5|02|a3|02|a3|02|a8|02|a9|02|a9|02|a8|02|a8|02|a8|02|55|02|55|02|55|02|55|02|53|02|53|02|53|02|53|02|52|02|52|02|4e|02|4e|02|4d|02|3e|02|3b|02|3b|02|3c|02|3c|02|3c|02|3c|02|3d|02|3e|02|3e|02|41|02|41|41|32|02|24|be|a0|38|a3|34|02|9f|f8|00|00|00|00|3d|f3|b6|46|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|49|d1|49|ed|4a|0a|4a|24|4a|41|4a|5c|4a|77|4a|92|4a|ad|4a|c7|4a|e3|4a|fd|4b|17|4b|31|4b|4b|4b|65|4b|7f|4b|99|4b|b1|4b|cb|4b|e4|4b|fd|4c|16|4c|2e|4c|46|4c|5f|4c|76|4c|8e|4c|a6|4c|bd|4c|d5|4c|ec|4d|02|4d|1a|4d|2f|4d|47|4d|5c|4d|72|4d|88|4d|9d|4d|b3|4d|c8|4d|dd|4d|f2|4e|06|4e|1b|4e|2f|4e|42|4e|57|4e|69|4e|7e|4e|90|4e|a3|4e|b6|4e|c8|4e|db|4e|ec|4e|ff|4f|0f|4f|22|4f|32|4f|43|4f|54|4f|64|4f|75|4f|85|4f|94|4f|a4|4f|b3|4f|c2|4f|d0|4f|e0|4f|ee|4f|fb|50|0a|50|18|50|24|50|32|50|3f|50|4c|50|57|50|64|50|70|50|7c|50|87|50|92|50|9d|50|a8|50|b2|50|bc|50|c6|50|d0|50|d9|50|e2|50|eb|50|f4|50|fc|51|04|51|0d|51|13|51|1b|51|22|51|29|51|2f|51|36|51|3c|51|41|51|47|51|4c|51|51|51|55|51|5b|51|5e|51|62|51|66|51|69|51|6c|51|6f|51|72|51|74|51|75|51|78|51|79|51|7a|51|7c|51|7b|51|7d|51|7c|51|7c|51|7c|51|7c|51|7a|51|79|51|77|51|76|51|74|51|72|51|6f|51|6c|51|69|51|66|51|62|51|5e|51|5a|51|56|51|51|51|4c|51|47|51|41|51|3c|51|35|51|30|51|29|51|22|51|1b|51|13|51|0c|51|04|50|fd|50|f3|50|ec|50|e2|50|d9|50|d0|50|c6|50|bc|50|b2|50|a8|50|9d|50|92|50|87|50|7b|50|70|50|64|50|58|50|4b|50|3f|50|32|50|25|50|18|50|09|4f|fc|4f|ee|4f|df|4f|d1|4f|c2|4f|b3|4f|a4|4f|94|4f|85|4f|74|4f|64|4f|54|4f|43|4f|33|4f|21|4f|10|4e|fe|4e|ed|4e|da|4e|c8|4e|b6|4e|a3|4e|91|4e|7d|4e|6a|4e|57|4e|42|4e|2f|4e|1a|4e|07|4d|f1|4d|dd|4d|c8|4d|b3|4d|9d|4d|88|4d|73|4d|5c|4d|46|4d|30|4d|19|4d|03|4c|ec|4c|d4|4c|bd|4c|a6|4c|8f|4c|76|4c|5f|4c|46|4c|2e|4c|15|4b|fd|4b|e4|4b|cb|4b|b1|4b|99|4b|7f|4b|65|4b|4b|4b|31|4b|18|4a|fc|4a|e3|4a|c8|4a|ad|4a|91|4a|77|4a|5c|4a|41|4a|24|4a|0a|49|ed|49|d2|49|31|02|08|3f|80|00|00|06|08|06|68|06|db|07|64|07|fa|08|75|06|f7|07|3e|07|93|07|92|08|88|09|2d|09|ca|0a|6b|08|33|08|a7|09|3d|09|db|0a|7f|0b|18|0b|a3|0c|71|07|7d|07|9a|07|a2|07|a1|07|82|07|69|07|56|07|35|07|98|05|a2|06|4b|07|d1|07|93|07|fc|08|4d|08|92|08|b0|08|ae|05|b7|05|be|05|c8|05|cc|05|96|05|7a|05|68|04|d4|05|a0|06|2f|06|dd|05|1b|05|20|05|1a|05|1f|05|2f|05|18|05|5b|05|c6|05|fe|06|35|06|57|06|7f|05|60|05|6f|05|98|05|e0|06|1d|06|2d|06|32|05|7f|05|b5|05|e0|06|00|06|13|06|1d|06|2d|06|40|06|27|06|27|06|1b|06|20|06|23|06|1f|05|db|05|7a|05|51|05|2c|05|2b|05|45|06|5b|06|76|06|a6|06|b8|06|a4|07|7f|07|47|07|08|06|bc|06|5b|06|ac|06|c8|06|e2|06|78|06|bc|06|cc|06|d4|06|cd|06|b7|06|92|06|57|06|0d|06|15|06|85|06|f7|07|4f|06|d2|07|29|07|82|07|f2|08|86|09|2b|09|db|0a|99|0b|27|0b|c1|0c|39|0c|8b|0c|a4|0c|91|0c|65|0c|0e|0b|99|0b|03|'}
{'|0 |54|b2|03|02|a3|1b|00|50|c2|90|40|ce|08|00|45|00|01|9c|25|2c|00|b9|32|11|4b|b1|0a|00|00|56|0a|00|01|66|0a|47|09|75|08|b8|08|12|08|28|07|98|08|41|07|48|07|19|06|f1|06|f4|06|fc|07|00|06|d7|06|2e|06|29|06|72|06|8e|06|b5|06|dd|05|da|06|1d|06|5b|06|8e|06|b4|06|d4|07|23|07|3a|07|63|07|51|07|49|07|34|07|17|06|b4|06|94|06|52|06|18|05|ea|05|c4|05|7d|05|02|04|d1|04|97|04|62|06|86|06|75|06|73|06|4e|06|4f|06|4d|06|45|06|38|06|24|06|09|05|e9|05|c6|05|97|05|61|05|20|06|5a|05|f6|05|c3|05|36|04|f7|04|93|04|28|04|78|04|f8|05|0a|05|45|05|62|05|7d|05|87|05|7f|05|63|05|81|05|63|05|4c|05|39|05|1e|04|fe|04|da|05|41|05|22|04|f5|04|ca|04|a2|04|85|04|71|04|6a|04|5d|05|02|04|fe|04|f2|04|db|04|c1|04|a4|04|b0|04|cc|04|ed|05|1d|05|10|05|21|05|25|05|1e|05|0c|04|f2|04|a0|04|6f|04|43|04|d8|04|e5|04|d6|04|94|04|82|04|58|04|2d|04|08|03|e6|03|dd|04|12|04|2b|47|30|00|10|3a|f1|2c|28|3b|2d|03|da|80|00|00|00|51|30|00|84|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|00|00|00|07|77|70|00|00|77|77|77|70|07|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|' }
{'|0 |54|b2|03|02|a3|1b|00|50|c2|90|40|ce|08|00|45|00|05|dc|25|2d|20|00|32|11|28|29|0a|00|00|56|0a|00|01|66|ff|dc|0f|a0|07|50|00|00|42|54|48|30|00|00|07|48|00|00|00|00|48|30|00|74|32|30|32|32|00|00|00|00|00|00|00|00|31|30|30|31|36|36|00|00|00|00|00|00|00|00|04|69|01|20|ad|cb|00|01|06|e2|3c|88|88|8a|44|bb|80|00|48|92|7c|00|43|3f|00|00|37|7b|a8|82|3c|8e|fa|36|3c|0e|fa|36|00|00|00|00|00|00|00|00|00|00|d9|54|47|6a|60|00|47|7f|00|01|40|40|00|00|42|34|00|00|41|f0|00|00|42|b2|00|00|00|00|00|00|00|00|00|06|00|06|01|00|52|30|02|08|36|80|80|80|02|b7|02|b8|02|b8|02|b8|02|b9|02|b9|02|3d|02|3d|02|3d|02|b4|02|b4|02|b4|02|b5|02|b5|02|b0|02|b0|02|b1|02|b1|02|b2|02|b2|02|b2|02|b3|02|ac|02|ac|02|ad|02|ad|02|ad|02|ad|02|ad|02|ad|02|ae|02|a7|02|a8|02|ab|02|ac|02|ac|02|ac|02|ac|02|ac|02|ac|00|00|00|00|00|00|00|00|00|00|00|00|00|00|02|3c|02|a5|02|a6|02|a6|00|00|00|00|00|00|00|00|00|00|02|9c|02|9d|02|9d|02|9d|02|9e|02|9e|02|9f|00|00|00|00|01|ee|01|ee|01|ee|01|ef|01|f1|02|99|02|99|02|99|02|99|02|9a|02|99|02|99|02|98|01|e2|01|e2|01|e2|01|e1|01|e1|01|e0|02|8f|02|8f|02|8f|02|8f|02|8f|02|8f|02|94|02|94|02|94|02|94|02|93|02|93|02|93|02|92|02|92|02|92|02|6d|02|6d|02|6c|01|fe|01|fe|01|fe|01|ff|01|ff|01|ff|01|ff|01|ff|01|ff|02|8e|02|8f|02|90|02|90|02|91|02|92|02|92|02|93|02|93|02|93|02|94|02|94|02|94|02|95|02|95|02|95|02|95|02|95|02|95|02|95|02|95|02|95|02|95|02|94|02|94|02|93|02|93|02|92|02|91|02|90|02|8f|02|8e|02|8d|02|8d|02|8c|02|8b|02|70|02|70|02|70|02|70|02|70|02|70|02|5f|02|5f|02|5f|02|5f|02|5f|02|5f|02|5f|02|60|02|60|02|60|02|60|02|60|02|61|02|66|02|67|02|67|02|68|02|68|02|68|02|68|02|87|02|86|02|86|02|86|02|9d|02|9d|02|9d|02|9d|02|9d|02|9c|02|9c|02|9c|02|9b|02|9b|02|9b|02|9a|02|9a|02|9a|02|9a|02|a0|02|a0|02|9f|02|9e|02|9d|02|9b|02|8d|02|8d|02|8c|02|87|02|87|02|87|02|87|02|87|02|87|02|87|02|9c|02|9c|02|9c|02|9c|02|9c|02|9c|02|9c|02|a5|02|a5|02|a5|02|a5|02|a5|02|a5|02|a5|02|a3|02|a3|02|a8|02|a9|02|a9|02|a8|02|a8|02|a8|02|55|02|55|02|55|02|55|02|53|02|53|02|53|02|53|02|52|02|52|02|4e|02|4e|02|4d|02|3e|02|3b|02|3b|02|3c|02|3c|02|3c|02|3c|02|3d|02|3e|02|3e|02|41|02|41|41|32|02|24|be|a0|38|a3|34|02|9f|f8|00|00|00|00|3d|f3|b6|46|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|49|d1|49|ed|4a|0a|4a|24|4a|41|4a|5c|4a|77|4a|92|4a|ad|4a|c7|4a|e3|4a|fd|4b|17|4b|31|4b|4b|4b|65|4b|7f|4b|99|4b|b1|4b|cb|4b|e4|4b|fd|4c|16|4c|2e|4c|46|4c|5f|4c|76|4c|8e|4c|a6|4c|bd|4c|d5|4c|ec|4d|02|4d|1a|4d|2f|4d|47|4d|5c|4d|72|4d|88|4d|9d|4d|b3|4d|c8|4d|dd|4d|f2|4e|06|4e|1b|4e|2f|4e|42|4e|57|4e|69|4e|7e|4e|90|4e|a3|4e|b6|4e|c8|4e|db|4e|ec|4e|ff|4f|0f|4f|22|4f|32|4f|43|4f|54|4f|64|4f|75|4f|85|4f|94|4f|a4|4f|b3|4f|c2|4f|d0|4f|e0|4f|ee|4f|fb|50|0a|50|18|50|24|50|32|50|3f|50|4c|50|57|50|64|50|70|50|7c|50|87|50|92|50|9d|50|a8|50|b2|50|bc|50|c6|50|d0|50|d9|50|e2|50|eb|50|f4|50|fc|51|04|51|0d|51|13|51|1b|51|22|51|29|51|2f|51|36|51|3c|51|41|51|47|51|4c|51|51|51|55|51|5b|51|5e|51|62|51|66|51|69|51|6c|51|6f|51|72|51|74|51|75|51|78|51|79|51|7a|51|7c|51|7b|51|7d|51|7c|51|7c|51|7c|51|7c|51|7a|51|79|51|77|51|76|51|74|51|72|51|6f|51|6c|51|69|51|66|51|62|51|5e|51|5a|51|56|51|51|51|4c|51|47|51|41|51|3c|51|35|51|30|51|29|51|22|51|1b|51|13|51|0c|51|04|50|fd|50|f3|50|ec|50|e2|50|d9|50|d0|50|c6|50|bc|50|b2|50|a8|50|9d|50|92|50|87|50|7b|50|70|50|64|50|58|50|4b|50|3f|50|32|50|25|50|18|50|09|4f|fc|4f|ee|4f|df|4f|d1|4f|c2|4f|b3|4f|a4|4f|94|4f|85|4f|74|4f|64|4f|54|4f|43|4f|33|4f|21|4f|10|4e|fe|4e|ed|4e|da|4e|c8|4e|b6|4e|a3|4e|91|4e|7d|4e|6a|4e|57|4e|42|4e|2f|4e|1a|4e|07|4d|f1|4d|dd|4d|c8|4d|b3|4d|9d|4d|88|4d|73|4d|5c|4d|46|4d|30|4d|19|4d|03|4c|ec|4c|d4|4c|bd|4c|a6|4c|8f|4c|76|4c|5f|4c|46|4c|2e|4c|15|4b|fd|4b|e4|4b|cb|4b|b1|4b|99|4b|7f|4b|65|4b|4b|4b|31|4b|18|4a|fc|4a|e3|4a|c8|4a|ad|4a|91|4a|77|4a|5c|4a|41|4a|24|4a|0a|49|ed|49|d2|49|31|02|08|3f|80|00|00|06|08|06|68|06|db|07|64|07|fa|08|75|06|f7|07|3e|07|93|07|92|08|88|09|2d|09|ca|0a|6b|08|33|08|a7|09|3d|09|db|0a|7f|0b|18|0b|a3|0c|71|07|7d|07|9a|07|a2|07|a1|07|82|07|69|07|56|07|35|07|98|05|a2|06|4b|07|d1|07|93|07|fc|08|4d|08|92|08|b0|08|ae|05|b7|05|be|05|c8|05|cc|05|96|05|7a|05|68|04|d4|05|a0|06|2f|06|dd|05|1b|05|20|05|1a|05|1f|05|2f|05|18|05|5b|05|c6|05|fe|06|35|06|57|06|7f|05|60|05|6f|05|98|05|e0|06|1d|06|2d|06|32|05|7f|05|b5|05|e0|06|00|06|13|06|1d|06|2d|06|40|06|27|06|27|06|1b|06|20|06|23|06|1f|05|db|05|7a|05|51|05|2c|05|2b|05|45|06|5b|06|76|06|a6|06|b8|06|a4|07|7f|07|47|07|08|06|bc|06|5b|06|ac|06|c8|06|e2|06|78|06|bc|06|cc|06|d4|06|cd|06|b7|06|92|06|57|06|0d|06|15|06|85|06|f7|07|4f|06|d2|07|29|07|82|07|f2|08|86|09|2b|09|db|0a|99|0b|27|0b|c1|0c|39|0c|8b|0c|a4|0c|91|0c|65|0c|0e|0b|99|0b|03|'}
{'|0 |54|b2|03|02|a3|1b|00|50|c2|90|40|ce|08|00|45|00|01|9c|25|2d|00|b9|32|11|4b|b0|0a|00|00|56|0a|00|01|66|0a|47|09|75|08|b8|08|12|08|28|07|98|08|41|07|48|07|19|06|f1|06|f4|06|fc|07|00|06|d7|06|2e|06|29|06|72|06|8e|06|b5|06|dd|05|da|06|1d|06|5b|06|8e|06|b4|06|d4|07|23|07|3a|07|63|07|51|07|49|07|34|07|17|06|b4|06|94|06|52|06|18|05|ea|05|c4|05|7d|05|02|04|d1|04|97|04|62|06|86|06|75|06|73|06|4e|06|4f|06|4d|06|45|06|38|06|24|06|09|05|e9|05|c6|05|97|05|61|05|20|06|5a|05|f6|05|c3|05|36|04|f7|04|93|04|28|04|78|04|f8|05|0a|05|45|05|62|05|7d|05|87|05|7f|05|63|05|81|05|63|05|4c|05|39|05|1e|04|fe|04|da|05|41|05|22|04|f5|04|ca|04|a2|04|85|04|71|04|6a|04|5d|05|02|04|fe|04|f2|04|db|04|c1|04|a4|04|b0|04|cc|04|ed|05|1d|05|10|05|21|05|25|05|1e|05|0c|04|f2|04|a0|04|6f|04|43|04|d8|04|e5|04|d6|04|94|04|82|04|58|04|2d|04|08|03|e6|03|dd|04|12|04|2b|47|30|00|10|3a|f1|2c|28|3b|2d|03|da|80|00|00|00|51|30|00|84|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|00|00|00|07|77|70|00|00|77|77|77|70|07|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|' }
{'|0 |54|b2|03|02|a3|1b|00|50|c2|90|40|ce|08|00|45|00|05|dc|25|2f|20|00|32|11|28|27|0a|00|00|56|0a|00|01|66|ff|dc|ff|dc|07|50|00|00|42|54|48|30|00|00|07|48|00|00|00|00|48|30|00|74|32|30|32|32|00|00|00|00|00|00|00|00|31|30|30|31|36|36|00|00|00|00|00|00|00|00|04|69|02|1e|fe|17|00|01|06|e3|3c|88|88|9a|44|bb|80|00|48|92|7c|00|43|3f|00|00|37|7b|a8|82|3c|8e|fa|36|3c|0e|fa|36|00|00|00|00|00|00|00|00|00|00|d9|54|47|6a|60|00|47|7f|00|01|40|40|00|00|42|34|00|00|41|f0|00|00|42|b2|00|00|00|00|00|00|00|00|00|06|00|06|01|00|52|30|02|08|36|80|80|80|02|bb|02|ba|02|ba|02|ba|02|ba|02|bb|02|b6|02|b6|02|b7|02|b7|02|b7|02|b8|02|b8|02|b9|02|b4|02|b4|02|b4|02|b4|02|b3|02|b3|02|b3|02|b3|02|ab|02|ab|02|ab|02|ab|02|aa|02|aa|02|aa|02|aa|02|ab|02|a5|02|a6|02|a8|02|a9|02|a9|02|aa|02|aa|02|aa|02|aa|02|3f|02|3f|02|40|02|40|02|45|02|46|02|46|02|47|02|47|02|a7|02|a7|02|49|02|56|02|56|02|9d|02|9d|02|9d|02|9e|02|9e|02|9f|02|9f|02|a0|02|a0|02|82|02|81|02|81|02|81|01|e0|01|e0|01|e0|01|df|01|df|01|df|01|df|01|df|01|df|01|de|01|de|01|dd|01|dd|01|e0|01|e0|01|e0|01|e0|02|90|02|90|02|91|02|91|02|91|02|91|02|63|02|63|02|63|02|5d|02|5d|02|5c|02|5c|02|5c|02|5b|02|5b|02|5b|02|5b|02|55|02|55|02|2c|02|24|02|24|02|24|02|2f|02|30|02|30|02|30|02|30|02|30|02|30|02|95|02|95|02|95|02|95|02|95|02|96|02|96|02|96|02|97|02|98|02|98|02|98|02|99|02|99|02|98|02|98|02|97|02|97|02|96|02|95|02|94|02|93|02|92|02|91|02|90|02|90|02|8f|02|8e|02|8e|02|8d|02|8c|02|8c|02|4f|02|4f|02|4f|02|50|02|55|02|6f|02|6d|02|6e|02|6e|02|6e|02|6e|02|6d|02|6d|02|6d|02|6c|02|6c|02|6c|02|6c|02|95|02|95|02|94|02|94|02|93|02|93|02|93|02|93|02|83|02|83|02|83|02|83|02|82|02|9c|02|9c|02|9c|02|9c|02|9b|02|9b|02|9a|02|9a|02|9a|02|99|02|99|02|98|02|88|02|88|02|88|02|9e|02|9d|02|86|02|86|02|86|02|86|02|86|02|83|02|83|02|3c|02|3d|02|3d|02|9e|02|9e|02|9f|02|9f|02|9f|02|9f|02|9f|02|a0|02|6a|02|6a|02|6a|02|69|02|69|02|69|02|67|02|62|02|61|02|61|02|61|02|61|02|61|02|61|02|61|02|aa|02|aa|02|aa|02|aa|02|0c|02|0c|02|b0|02|b0|02|af|02|2a|02|2b|02|2b|02|2f|02|3c|02|3c|02|3c|02|3c|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|02|81|02|81|41|32|02|24|be|a0|38|a3|34|02|9f|f8|00|00|00|00|3d|f3|b6|46|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|00|49|d1|49|ed|4a|0a|4a|24|4a|41|4a|5c|4a|77|4a|92|4a|ad|4a|c7|4a|e3|4a|fd|4b|17|4b|31|4b|4b|4b|65|4b|7f|4b|99|4b|b1|4b|cb|4b|e4|4b|fd|4c|16|4c|2e|4c|46|4c|5f|4c|76|4c|8e|4c|a6|4c|bd|4c|d5|4c|ec|4d|02|4d|1a|4d|2f|4d|47|4d|5c|4d|72|4d|88|4d|9d|4d|b3|4d|c8|4d|dd|4d|f2|4e|06|4e|1b|4e|2f|4e|42|4e|57|4e|69|4e|7e|4e|90|4e|a3|4e|b6|4e|c8|4e|db|4e|ec|4e|ff|4f|0f|4f|22|4f|32|4f|43|4f|54|4f|64|4f|75|4f|85|4f|94|4f|a4|4f|b3|4f|c2|4f|d0|4f|e0|4f|ee|4f|fb|50|0a|50|18|50|24|50|32|50|3f|50|4c|50|57|50|64|50|70|50|7c|50|87|50|92|50|9d|50|a8|50|b2|50|bc|50|c6|50|d0|50|d9|50|e2|50|eb|50|f4|50|fc|51|04|51|0d|51|13|51|1b|51|22|51|29|51|2f|51|36|51|3c|51|41|51|47|51|4c|51|51|51|55|51|5b|51|5e|51|62|51|66|51|69|51|6c|51|6f|51|72|51|74|51|75|51|78|51|79|51|7a|51|7c|51|7b|51|7d|51|7c|51|7c|51|7c|51|7c|51|7a|51|79|51|77|51|76|51|74|51|72|51|6f|51|6c|51|69|51|66|51|62|51|5e|51|5a|51|56|51|51|51|4c|51|47|51|41|51|3c|51|35|51|30|51|29|51|22|51|1b|51|13|51|0c|51|04|50|fd|50|f3|50|ec|50|e2|50|d9|50|d0|50|c6|50|bc|50|b2|50|a8|50|9d|50|92|50|87|50|7b|50|70|50|64|50|58|50|4b|50|3f|50|32|50|25|50|18|50|09|4f|fc|4f|ee|4f|df|4f|d1|4f|c2|4f|b3|4f|a4|4f|94|4f|85|4f|74|4f|64|4f|54|4f|43|4f|33|4f|21|4f|10|4e|fe|4e|ed|4e|da|4e|c8|4e|b6|4e|a3|4e|91|4e|7d|4e|6a|4e|57|4e|42|4e|2f|4e|1a|4e|07|4d|f1|4d|dd|4d|c8|4d|b3|4d|9d|4d|88|4d|73|4d|5c|4d|46|4d|30|4d|19|4d|03|4c|ec|4c|d4|4c|bd|4c|a6|4c|8f|4c|76|4c|5f|4c|46|4c|2e|4c|15|4b|fd|4b|e4|4b|cb|4b|b1|4b|99|4b|7f|4b|65|4b|4b|4b|31|4b|18|4a|fc|4a|e3|4a|c8|4a|ad|4a|91|4a|77|4a|5c|4a|41|4a|24|4a|0a|49|ed|49|d2|49|31|02|08|3f|80|00|00|06|ea|07|2f|07|7b|07|f1|08|76|09|12|07|34|07|94|07|fd|08|7b|09|0d|09|d6|0a|7e|0b|05|08|a3|08|fc|09|40|09|91|0a|2f|0a|d2|0b|68|0b|ee|07|6a|07|87|07|91|07|89|07|8d|07|6a|07|2f|07|1c|07|85|06|48|06|bf|07|69|07|df|08|44|08|94|08|c3|08|d0|08|b8|06|2a|06|4e|06|57|06|3c|06|0b|06|0f|06|11|06|00|05|e7|06|bf|07|53|05|93|05|78|05|48|05|25|05|5e|05|82|05|99|05|ab|05|93|05|c8|05|dd|05|e0|04|2f|04|35|04|2d|04|32|04|95|04|d2|04|fe|05|3a|05|68|05|86|05|9d|05|a2|05|a8|05|b9|05|d8|05|ef|05|ff|05|f5|05|d2|05|ad|05|6f|05|45|05|7a|05|97|05|a8|05|ad|05|9d|07|e5|08|27|08|64|07|da|07|f1|07|f6|07|eb|07|d7|07|af|07|6f|07|30|06|e8|05|f3|05|af|06|9e|05|f1|06|2d|06|4c|07|bc|07|ad|07|8e|07|5a|07|2d|07|07|06|d2|04|a3|05|29|05|d0|06|6d|07|30|08|03|08|b0|09|81|0a|4e|0b|5e|0c|1b|0c|93|0c|ff|0d|4f|0d|7d|0d|6a|0d|3c|0c|dc|0b|ec|'}
{'|0 |54|b2|03|02|a3|1b|00|50|c2|90|40|ce|08|00|45|00|01|9c|25|2f|00|b9|32|11|4b|ae|0a|00|00|56|0a|00|01|66|0b|0d|0a|2a|09|57|08|95|07|ee|07|6d|06|ef|07|c5|07|9e|07|dc|07|94|07|4c|07|13|06|7d|06|79|06|62|06|3d|06|2c|06|80|06|58|06|59|06|32|06|2f|06|2b|06|3c|06|53|06|49|06|37|06|2b|06|16|06|07|05|c5|05|c0|05|cc|06|33|06|49|06|62|06|79|06|87|04|f5|04|ee|04|f4|04|d9|04|d1|06|dc|06|b9|06|a8|06|9e|06|a8|06|ab|06|93|06|80|06|66|06|43|06|15|05|e2|06|65|06|09|06|00|05|fd|05|92|05|b9|05|a0|05|9d|05|9b|05|6b|05|29|05|0f|05|11|05|5a|05|92|05|a7|05|e2|05|f6|06|0d|06|13|06|07|05|e8|05|ba|06|1f|06|26|06|2a|06|37|06|37|06|33|06|0b|05|c3|05|cb|05|b9|05|99|05|77|05|4e|05|10|04|e1|05|42|05|30|05|13|04|ea|04|78|04|7b|05|77|05|20|04|c1|04|ad|04|bd|04|be|04|ea|05|0a|05|14|05|15|04|f6|05|36|05|53|05|76|05|74|05|9b|05|3b|05|30|05|19|04|ec|04|ef|05|0e|47|30|00|10|3a|f1|2c|28|3b|2d|03|da|80|00|00|00|51|30|00|84|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|70|00|00|00|00|77|' }
>>
v=cellfun(@(s) sscanf(s,'|%x '),c,'uni',0);
then results in
>> v(1:10)
ans =
10×1 cell array
{1515×1 double}
{ 427×1 double}
{1515×1 double}
{ 427×1 double}
{1515×1 double}
{ 427×1 double}
{1515×1 double}
{ 427×1 double}
{1515×1 double}
{ 427×1 double}
>>
for first 10 records -- the length of the records alternates throughout.
The last step took a few seconds on a pretty minimal machine here...should be quite a bit faster than either str2num or using regexp, though.

2 comentarios

dpb
dpb el 9 de Ag. de 2020
Editada: dpb el 9 de Ag. de 2020
For some inexplicable reason TMW didn't implement hex conversion into textscan so can't use it directly. Alternatively would be to just use fgetl and fscanf in conjunction and read/convert every fourth record from disk. Don't know how speed would compare; didn't try it.
Bram Surewaard
Bram Surewaard el 10 de Ag. de 2020
Thanks this works realy well when i replace the last line with:
expression = '\|';
Data = regexp(s,expression,'split');

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 8 de Ag. de 2020

Comentada:

el 10 de Ag. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by