[SOLVED] How to read data file from a specific line ?
Ältere Kommentare anzeigen
Hi all,
simple problem :
- I got a data file in which 10 first lines are characters.
- Then, from the line 11, there are only floats.
- How can I read from the line 11 until the end of the file ?
Thanks for all !
Florian
Akzeptierte Antwort
Weitere Antworten (2)
Walter Roberson
am 12 Mär. 2014
0 Stimmen
See textscan with a HeaderLines parameter of 10
Note: you cannot use csvread() or dlmread() for this purpose.
Mireia Fontanet
am 28 Dez. 2017
0 Stimmen
Dear,
I have to txt files, one is called variables.txt and the other one is called selector.in.txt. I want to replaced the first line of variables.txt file with the second line of selector.in.txt. How can I do it?
Regards,
1 Kommentar
Walter Roberson
am 1 Jan. 2018
See https://www.mathworks.com/matlabcentral/answers/8801-replacing-and-inserting-a-text-in-an-ascii-file#comment_520585 as I answered in the other place you posted this. You should have just created a new Question.
Kategorien
Mehr zu JSON Format 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!