How to read certain data within a text file.
显示 更早的评论
Hi. I would like to read some matrices and vectors from a txt file. This one has got many sets of four problems per set, and in each of those problems there are two vectors and one matrix as the data of the problem. That being said, my goal is to extract just the matrix and the vectors from all the problems of an specific set, but I'm having some troubble when doing it. I know how to read all the lines of the file, but I just want the "pointer" to stop when it finds my set of problems.
For example, if you open the file I've attached, I just want to read all the matrices and vectors of the set of problems that contains in its title: "cjt. de dades 51".
Thank you very much.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Import and Export 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!