How can I print names of files or folders contained in a specific folder in first (( COLUMN A ) in excel sheet?
1 次查看(过去 30 天)
显示 更早的评论
this code its modified by Shiran Golan with best thanks to him ,
% srcFolders = dir;
for folder = 1:length(srcFolders)
srcFolders(folder).fullname = strcat('D:\',srcFolders(folder).name);
end
xlswrite('xlsFile', {srcFolders(:).fullname}, 'xlsSheet','A1');
0 个评论
采纳的回答
Azzi Abdelmalek
2015-7-22
for folder = 1:length(srcFolders)
data{folder,1} = fullfile('D:',srcFolders(folder).name);
end
xlswrite('xlsFile', data, 'xlsSheet','A1');
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!