How to read GSI (text) file?

4 ビュー (過去 30 日間)
Geo19
Geo19 2021 年 11 月 8 日
コメント済み: Geo19 2021 年 11 月 8 日
Hello!
I'm trying to read GSI file (txt file) as matrix. I already tryed with functionc fscan, textscan... but no succes.
The row of GSI file looks like that:
*110002+00000000000000O5 21...2+0000000164794460 22...2+0000000098744500 31...0+00000034287.0000 51....+000000000000+00.000 2021 4 24 10 46 23.790
Thanks for advice/ help.

採用された回答

Chris
Chris 2021 年 11 月 8 日
A = readlines('Example_of_GSI.txt');
parsed = split(A).strip('*');
Does that break it down enough for you to work with?
  2 件のコメント
Chris
Chris 2021 年 11 月 8 日
If you need to get rid of the + and ...
parsedmore = [];
for idx = 1:12
parsedmore = [parsedmore, split(parsed(:,idx),{'+','...'})];
end
Valid numbers can then be cast to doubles
firstcol = double(parsedmore(:,1));
Geo19
Geo19 2021 年 11 月 8 日
That's exacly what i need.
Thank you very much :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBeamforming and Direction of Arrival Estimation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by