フィルターのクリア

Problems with reading a .txt file in Matlab

2 ビュー (過去 30 日間)
Gianmarco Azzolin
Gianmarco Azzolin 2021 年 3 月 31 日
回答済み: Jan 2021 年 3 月 31 日
Hi guys, I'm trying opening and export data from a .txt file, but it cannot read the numbers that are inside. Indeed, if I use read matrix command, the matrix that Matlab creates is full of "NaN". How can I overcome this problem?
Thank you very much in advance!
p.s.
you find attached the .txt file

回答 (1 件)

Jan
Jan 2021 年 3 月 31 日
The format of the text file is not trivial. Some headers and data sections occur and without having the exact definition it is not possible to parse this file reliably. Then readmatrix does not have a chance to understand the contents of the file automagically.
Ask the producer of this file for a clear definition of the file format. Then it is possible to write a parser. This will be a serious amount of work.

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by