[SOLVED] How to read data file from a specific line ?
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (2)
Walter Roberson
il 12 Mar 2014
0 voti
See textscan with a HeaderLines parameter of 10
Note: you cannot use csvread() or dlmread() for this purpose.
Mireia Fontanet
il 28 Dic 2017
0 voti
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 Commento
Walter Roberson
il 1 Gen 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.
Categorie
Scopri di più su JSON Format in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!