Info

此问题已关闭。 请重新打开它进行编辑或回答。

I have rbgma file help me please read it with structure

1 次查看(过去 30 天)
i have rbgma file with geophysical data help me reading it column by column in structure please
  7 个评论
Walter Roberson
Walter Roberson 2020-4-11
Binary files do not have any concept of "columns".
Your code in open.txt shows attempting to read the file as a binary file. That code is completely inappropriate if the input is a text file.
If your file is a text file that has the same format as your Новый текстовый документ.txt file, then reading it is not difficult at all.

回答(1 个)

Walter Roberson
Walter Roberson 2020-4-11
T = readtable('Новый текстовый документ.txt');
T.Properties.VariableNames = {'day', 'month', 'year', 'hour', 'min', 'sec', 'Flag', 'Lat', 'Lon', 'heading', 'speed', 'depth', 'gravanomaly', 'gravymeter', 'maganomaly', 'magnetometer'}
T.date = datetime(T.year, T.month, T.day, T.hour, T.min, T.sec);

标签

Community Treasure Hunt

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

Start Hunting!

Translated by