how to parse a data file (make a parsor)

I have a file containing a set of entities (STEP file), I want to read it line by line and identify each entity with its attribute, This is an example:
#502=TOLERANCED_LENGTH_MEASURE (30, #326);
#502 is the identifier of the entity
TOLERANCED_LENGTH_MEASURE: the name
30: is an attribute (integer)
#326 is another attribute (which is an identifier of another entity)
Is there any function that allows me to read this file line by line and identify the attribute?

1 件のコメント

Rik
Rik 2017 年 3 月 22 日
What have you tried already? I assume textscan would be a good place to start looking.

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

回答 (0 件)

カテゴリ

タグ

質問済み:

2017 年 3 月 20 日

コメント済み:

Rik
2017 年 3 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by