Easy textscan question. What is this input?
Ältere Kommentare anzeigen
I have inherited a script with many textscan functions like the one below
textscan(fid, '%*s %*s %f\n\r',1,'HeaderLines',19)
So this skips 19 lines, then reads and ignores two strings and then finds the next number and returns it and ignores the rest of the line, right?
But what does the '1' do? Does that serve any purpose? Is that how many times to repeat the operation? That seems pointless if the number is one, and I have many of these with '1's...
2 Kommentare
Sara
am 17 Jul. 2014
Yes, 1 is the number of times it repeats the ignore 2 strings, read number instruction
Andrew Reibold
am 17 Jul. 2014
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Data Import and Export finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!