How to extract specific data from file extension TRO file?

22 vues (au cours des 30 derniers jours)
Vicky Liu
Vicky Liu le 3 Déc 2020
Commenté : Vicky Liu le 4 Déc 2020
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.

Réponse acceptée

Rik
Rik le 3 Déc 2020
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).

Plus de réponses (0)

Catégories

En savoir plus sur Language Fundamentals dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by