How can I print names of files or folders contained in a specific folder in first (( COLUMN A ) in excel sheet?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
ahmed obaid
el 22 de Jul. de 2015
Comentada: ahmed obaid
el 22 de Jul. de 2015
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 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 22 de Jul. de 2015
for folder = 1:length(srcFolders)
data{folder,1} = fullfile('D:',srcFolders(folder).name);
end
xlswrite('xlsFile', data, 'xlsSheet','A1');
Más respuestas (0)
Ver también
Categorías
Más información sobre Spreadsheets en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!