Info
此问题已关闭。 请重新打开它进行编辑或回答。
using a function to input names of files
2 次查看(过去 30 天)
显示 更早的评论
i have a function that make operations on files that end with a-0 so i used dir command.
sad=dir('* a-0.txt');
i want it to return 4 arrays of the proccessed result, how to present the signature in that case ,i am not sure because its a special file name case. thanks.
1 个评论
回答(1 个)
Walter Roberson
2017-2-19
sad = dir('*a-0.txt');
sad_files = {sad.name};
nfile = length(sad_files);
for K = 1 : nfile
data{K} = readtable(sad_files{K});
end
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!