Reading text under blocks and select blocks containing the data...

Hi all,
I have a ascii file with several million lines which is defined as follows:
< startblock >
value value2 value3
.
.
.
< endblock >
< startblock >
value value2 value3
.
.
.
< endblock >
My goal is to go into each block and read the values inside. If these values are of interest I want to select the entire block and save it as a new file. Can someone give me some insight on how to do this?
Thanks in advance!
Best regards
Joao

3 件のコメント

dpb
dpb 2017 年 5 月 8 日
編集済み: Walter Roberson 2017 年 5 月 8 日
What, specifically are <start/endblock> markers?
Are the blocks fixed-size or variable?
If either, is that size known a priori?
Walter Roberson
Walter Roberson 2017 年 5 月 8 日
Do you have enough memory to be able to read the entire file at one time and then analyze it?
KSSV
KSSV 2017 年 5 月 9 日
If these values are of interest I want to select the entire block what's the criteria to select? I think what you have is a x,y,z data. At the end you want to plot and see?

回答 (0 件)

この質問は閉じられています。

タグ

質問済み:

2017 年 5 月 8 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by