MATLAB Answers

0

How can I make a line be ignored by importdata?

Asked by Pal Szabo on 8 Sep 2017
Latest activity Answered by KSSV
on 8 Sep 2017
Accepted Answer by KSSV
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?

  0 Comments

Sign in to comment.

1 Answer

Answer by KSSV
on 8 Sep 2017
 Accepted Answer

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 Comments

Sign in to comment.