extract data from a text file in a loop

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 件のコメント

Walter Roberson
Walter Roberson 2016 年 2 月 4 日
Could you give a brief extract?
MHN
MHN 2016 年 2 月 4 日
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.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeText Data Preparation についてさらに検索

質問済み:

2016 年 2 月 4 日

コメント済み:

MHN
2016 年 2 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by