extract data from a text file in a loop

1 visualizzazione (ultimi 30 giorni)
Muhammad Sajid
Muhammad Sajid il 4 Feb 2016
Commentato: MHN il 4 Feb 2016
My text file contains coordinates of a molecule. The coordinates represents the frames of molecule. Every frame of molecule ends with 'TER' line in a file. I would like to extract all lines till 'TER' as a single element of array and keep continue extracting frames. It will stop at line with 'END' word.
  2 Commenti
Walter Roberson
Walter Roberson il 4 Feb 2016
Could you give a brief extract?
MHN
MHN il 4 Feb 2016
Once I have written the similar code. Please attach your text file in your question (for example with 3 entries) and I will change that code in the way that works for you.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Text Data Preparation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by