[SOLVED] How to read data file from a specific line ?
이전 댓글 표시
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
채택된 답변
추가 답변 (2개)
Walter Roberson
2014년 3월 12일
0 개 추천
See textscan with a HeaderLines parameter of 10
Note: you cannot use csvread() or dlmread() for this purpose.
Mireia Fontanet
2017년 12월 28일
0 개 추천
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
Walter Roberson
2018년 1월 1일
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.
카테고리
도움말 센터 및 File Exchange에서 JSON Format에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!