How Load *.txt file with binary output and convert him to ASCII?

Hi,
I need some help, in this task, to analayse my aquisition data I need to load a *.txt file. Inside him it have a binary code. SO I need convert him to ASCII , or decimal code. The objective is manipulate the data and exib it on the following format...
In attachment i sent the input.txt, that i need to load.
Thanks in advance

4 件のコメント

Chunru
Chunru 2022 年 8 月 18 日
The file is binaray and not ascii forma, thus it is not readable. So you have to know the format of the file before you can read it.
Stephen23
Stephen23 2022 年 8 月 18 日
"Inside him it have a binary code."
What is the encoding method used for that binary file?
Biza Ferreira
Biza Ferreira 2022 年 8 月 18 日
Hello Stephen23,
Thanks for your answer, this is extraction log from a arduino, write to a SDcard, I think it is UTF8 it's a default Vscode.
Thanks in advance
Biza Ferreira
Biza Ferreira 2022 年 8 月 22 日
Hello fellows,
I have made the follow, I have open a file input.txt, the first 4 bytes of my "input" file give me the total of data aquisitioned, so I need transform it to a uint32_t where the aquisition data make the aquisition countage from 0,1,2,...,59999.
So i need isolate this variable from the rest of the aquisition data and after that make a struct to build my aquisition system. someone can help me?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

製品

リリース

R2018a

質問済み:

2022 年 8 月 18 日

コメント済み:

2022 年 8 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by