How can I make a line be ignored by importdata?

6 ビュー (過去 30 日間)
Pal Szabo
Pal Szabo 2017 年 9 月 8 日
回答済み: KSSV 2017 年 9 月 8 日
I have a txt file as input. It has a few lines which I don't want to use in my script. Is there anything I can do with the input file, not with the matlab script, to be ignored by importdata?

採用された回答

KSSV
KSSV 2017 年 9 月 8 日
Read about textscan you can specify header lines there which ignores the lines. Or if your data is complete numerical, load it using load and skip the numbers you want.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeString Parsing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by