How to remove text strings from .dat file
Show older comments
Hi everyone.
There is a .dat file, where the first raw of it:
#component = 1 embedding = 1
Then 20x3 matrix of numbers and again:
#component = 1 embedding = 2
So how to remove these lines from matlab when I load the file or is it better to remove from array like:
if x(1,1) == '#component';
x(1,1)=[];
4 Comments
per isakson
on 31 Jul 2012
Edited: per isakson
on 31 Jul 2012
Something like
textscan ( ..., 'Headerlines', 1 )
Artyom
on 31 Jul 2012
Artyom
on 31 Jul 2012
Answers (1)
Jan
on 31 Jul 2012
textscan(..., 'CommentStyle', '#')
Categories
Find more on App Building in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!