Reading .txt files from the folder and extracting data
7 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a couple of folders which have three text files, I want to read the first file and save the numerical value in an array.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/875535/image.png)
The folders look like above each folder has three files which look like
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/875540/image.png)
I want to read the first file of each folder and extract the value of Cext, as shown in the picture below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/875545/image.png)
Does any one knows how it can be done?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!