Ignoring or deleting lines starting with # using dlmread.

I have a file that contains a couple of 1000 lines of data with a few lines inbetween that are causing dlmread to crash. It looks something like this: 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; ## text; 1 2 3 4 5; ...
Every line that I do not need starts with ##. I just want dlmread to skip those lines or maybe write a procedure that deletes these lines in my txt file. I just need th3 numeric content of my .txt file.
Thank you in advance!

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEnvironment and Settings についてさらに検索

製品

質問済み:

2016 年 5 月 10 日

編集済み:

2016 年 5 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by