How to extract specific data from file extension TRO file?

Hi there, I have more than hundreds of TRO files (e.g., COD20342.TRO) which downloaded from 'ftp.aiub.unibe.ch/CODE/'. I need to process specific parameters (e.g., TROTOT) from each TRO file.
In order to extract TROTOT, I've tried to convert TRO file to .xlsx file or .mat file. However, I am not able to open either of them. Can anyone help me to address it? Thanks in advance.

 Accepted Answer

You could use something like readtable to load your file to a table. If that doesn't work you will have to process each line separately, which you can do easily once you have read your file to a string vector with readlines (since R2020b), or to a cellstr with readfile (which you can get from the FEX or (with R2017a or later) through the AddOn-manager).

More Answers (0)

Categories

Asked:

on 3 Dec 2020

Commented:

on 4 Dec 2020

Community Treasure Hunt

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

Start Hunting!