Info
This question is closed. Reopen it to edit or answer.
I have rbgma file help me please read it with structure
1 view (last 30 days)
Show older comments
i have rbgma file with geophysical data help me reading it column by column in structure please
7 Comments
Walter Roberson
on 11 Apr 2020
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.
Answers (1)
Walter Roberson
on 11 Apr 2020
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);
1 Comment
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!