How to read a table.txt from series of folders?

1 view (last 30 days)
Could you please help me to read the data from a table.txt in a series of subfolders from a directory?
clear;
folderList = dir('folder_*.out');
for i=1:length(folderList)
A=readmatrix('table.txt');
end

Answers (1)

KSSV
KSSV on 27 Oct 2022
  2 Comments
Sateesh Kandukuri
Sateesh Kandukuri on 27 Oct 2022
Dear KSSV, Thank you so much for the suggestion. But I failed to apply it to my case. I am unable to decode it. Could you please provide an alternate solution?
Sateesh Kandukuri
Sateesh Kandukuri on 8 Nov 2022
Edited: Sateesh Kandukuri on 9 Nov 2022
I failed to implement it in my case using previous suggestions.

Sign in to comment.

Categories

Find more on Search Path in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!