[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!